Copy link to clipboard
Copied
Hi Everyone,
How can i read the current document xml file. Kindly help how to read the xml file.
Thanks,
-Jothipriya
Copy link to clipboard
Copied
If you're looking to see how the XML structure is for your document, use the View>Structure>Show Structure menu command. That opens the Structure panel, where you can view and manipulate XML formatting in the document. There are also other quick toggles available in the View>Structure> sub-menu which will help your tasks.
Hope this helps,
Randy
Copy link to clipboard
Copied
If you want to export the XML of the document using the scripting SDK you can use the following
app.documents[0].exportFile(ExportFormat.XML, "Path to XML file to export")
If you want to traverse the XML then the associatedXMLElement property of the document object is your friend. There are lots of samples regarding this on the forum you can study them
-Manan