0

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?

daralim
  • 183
  • 10

1 Answers1

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