document to string table

i’m new webMethods. can anyone help me to create a flow steps to convert document to string table.

example :

-result(document)

  • reference[0]
    • name
    • reference
      • reference[0]
        • name
      • reference[1]
        • name
  • reference[1]
    • name
    • reference
      • reference[0]
        • name
          i need to populate all the name into the name table. pls help me on this.

In the flow service, add a map step and add a stinglist field to it. Map the results/name to the string list. It will copy all the names present in the document list to the string list.

The document is populated at runtime so we cannot guess the structure of the document to map it in the flow service.

for examples:

if we input the service name to this service:

wm.server.ns.dependency:getReferences

the output would be in document structure which i need to populate it in string table.