You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The available options for namespace awareness behaviour are `STRICT`, `NONE` and `LEGACY`.
1206
+
1207
+
`STRICT` adheres to strict XML namespace comparison.
1208
+
Namespace prefixes must be bound to a namespace URI.
1209
+
Namespace prefixes as well as namespace URIs must match (for both elements and attributes), unless explicitly excluded
1210
+
by the `exemptedComparisons` parameter.
1211
+
1212
+
`NONE` does not consider XML namespaces when reading and comparing XML documents.
1213
+
Namespace prefixes do not need to be bound to a namespace URI and are not considered a separate part of an
1214
+
element/attribute name (i.e. the entire element/attribute name must match, not just the local name, regardless of
1215
+
the `exemptedComparisons` parameter).
1216
+
`xmlns` namespaced attributes are treated no differently to any other attribute.
1217
+
1218
+
`LEGACY` is not recommended and is only kept as an option for backwards compatibility.
1219
+
1169
1220
### XPath
1170
1221
1171
1222
Deems a match if the attribute value is valid XML and matches the XPath expression supplied. An XML document will be considered to match if any elements are returned by the XPath evaluation. WireMock delegates to Java's in-built XPath engine (via XMLUnit), therefore up to (at least) Java 8 it supports XPath version 1.0.
0 commit comments