Forum Discussion

Josh_Hill_17083's avatar
Josh_Hill_17083
Icon for Nimbostratus rankNimbostratus
Feb 11, 2014

Read XML and Store Value in a Table

Hi Everyone,

 

I have a VS that is connecting through to an external REST api. I can retrieve the xml data ok, but I would like to extract a set of values and store them in a table for use of a lookup.

 

The values are just strings, but I am not entirely sure through irules how to enumerate (example using foreach) through the elements, matching the key, retrieving that value, and storing it in a table. The table part looks pretty straight forward, but the part I am struggling with is running through the XML data and matching a key.

 

Any help would be appreciated.

 

Regards

 

1 Reply