How to convert a document to xml string with its root

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

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.

1 Like

Thanks Mahesh :wink: