Querying an Element
Querying an Element List
Querying an Attribute
Querying an Attribute List
Querying a String
Querying a Number
Querying a Boolean
Querying with Namespaces
To use namespaces in spin with XML, you can choose one of the following methods or combine both of them.1. Using a Single Prefix - URI Pair
2. Using a Map of Prefix - URI Pairs
If you are using
E.g.,:
xmlns="<URI>" in your XML file, spin uses DEFAULT as prefix for the namespace.E.g.,:
<root xmlns="http://camunda.org"></root> — prefix: DEFAULT, namespace: http://camunda.org so you need
to use XML(xml).xPath("/DEFAULT:root") to fetch the correct element.