The title speaks for itself. I tried to look for a parser in JavaScript but they don't seem to work in InDesign. Does somebody know how to do it?
Asked
Active
Viewed 1,218 times
0
-
1There's a parser included in InDesign, [see docs here](http://jongware.mit.edu/idcs6js/pc_XML.html). – Josh Voigts Apr 17 '18 at 18:57
-
Another option is to import XML into structure and use XML Suite http://jongware.mit.edu/idcs6js/index_XML%20Suite.html – Nicolai Kant Apr 18 '18 at 09:41
1 Answers
2
var xmlFile = File( "/some/xml/file/url" );
xmlFile.open("r");
var myXMLObject = XML ( xmlFile.read() );
xmlFile.close();
alert( myXMLObject.name() );

Loic
- 2,173
- 10
- 13