Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Out of Box Support for Extract all namespaces and attributes of an XML element

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

0 6 367
6 REPLIES 6
Top Solution Authors