Is there any out of box way to extract all namespaces and attributes defined on an XML Node. Example <root>?
<root xmlns:ex1="http://example1.com" xmlns:ex2="http://example2.com" testAttr="1.2" xmlns="http://rooot.com">
<ex2:child></ex2:child>
</root>
I do not want to use Java Callout Policy.
I have tried using an Extract Variable Policy to extract the root node. I could use a JavaScript Policy to extract the namespaces and attributes but was hoping if there is a better way of achieving this.
Thanks in advance