How can I get each node and their attributes from an XML with webMethods 10.11

What product/components do you use and which version/fix level?

webMethods 10.11

Are you using a free trial or a product with a customer license?

A product with a customer license

What are trying to achieve? Please describe in detail.

1- I’m receiving a JSON Stream and parsing it into a Document.
This how it gets:

Basically a Document with an array list.

2 - Using documentToXMLString I’m converting it to XML String Document.

What I need to do now is: Get each element and its attributes from the node so I can send them to be consumed by another system.



How can I achieve this without XSLT? it is possible?
Thank you


just LOOP over the doc list (specify as “Input Array” and leave “Output Array” empty) and inside the loop you can access each list item as a single document and extract the values you need and pass them to the consumer service.



That’s it!! It is working. Thank you :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.