nameshave Action
The nameshave
action removes all namespaces from an XML document.
Syntax
Usage
Stripping namespaces allows for easy access to XML elements and attributes in a JSON template
.
Example
Input:
Output:
Caution
Removing namespaces is prone to ambiguity. The origin of elements carrying the same local name will be lost (see the example above).
Attributes originally in different namespaces sharing the same local name will silently override each other:
becomes
Last updated