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.

Example:

F7QCC0GHxEy7vfVvbwoO3i4r4bS8Vk9YA2W28RcRIP4
2022-01-21T17:58:48+00:00
5772

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

Hi,

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.

Regards,
Holger

2 Likes

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.