How to extract XML payload from SOAP envelope.

I need help to extract xml from soap payload. Using extract variables I am getting only all the values instead of their tags with values. Please let me know if there is any better way than this in Apigee. I know we can xslt but that I do not want to use until that is the only option.

Also please tell how can we extract multiple repeating tag values in XPATH of xmlpayload If there is no for each loop.

0 2 2,062
2 REPLIES 2

Yes, you can extract XML payload, just set the type of the variable to 'nodeset' instead of 'string'.

More details on the type of variables here - XPath Variable Types

For multiple repeating tags,

> you could use index, [i] - but only if you know the index. or

> you could use XSL to repeat all the nodes or

> do XMLtoJSON and you could iterate over the nodes in a Javascript policy

Can we extract the elements from repeating group using extract variables. I understand xslt is not the preferred option in Apigee so what are the other alternatives.