Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How to get the current document XML

Contributor ,
Jun 07, 2021 Jun 07, 2021

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

TOPICS
How to, Scripting

Views

125

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 07, 2021 Jun 07, 2021

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jun 07, 2021 Jun 07, 2021

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines