IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

How to convert a document to xml string with its root

  • 1.  How to convert a document to xml string with its root

    Posted 04/04/18 06:28 AM

    Hi All, i have a document structure below which i wish to convert to xml string with its root element

    DOCUMENT STRUCTURE I AM HAVING




    XML STRING I WISH TO GENERATE

    i tried to use pub.xml.documentToXMLString and the results is not including tag.

    By any chance, what service i can use to convert this structure with it’s root tag to string?

    Warmest regards,
    Ronnie She Chien Wei


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: How to convert a document to xml string with its root

    Posted 04/04/18 07:37 AM

    The service used is correct, copy your root document under the document input of pub.xml.documentToXMLString service and map it. You will see the root tag in the XML output string.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: How to convert a document to xml string with its root

    Posted 04/04/18 07:56 AM