How to iterate through xml elements in apigee

Iteration of XML element based on conditions.

<visitors>

<visitor>

<age>30</age>

</visitor>

<visitor>

<age>15</age>

<visitor>

</visitors>

I want to execute some policies for all the visitor. How can I do it in apigee API Management????

0 1 257
1 REPLY 1

@nagappan palaniappan -

You will need to write your own logic in javascript or xslt to parse the xml content. Apigee does not expose any xml parsing policies. You could try converting the xml to json and then use javascript to parse the json.