Hello,
Does anyone know how to read/load and parse a xml file to a different file, in adobe javascript?
In javascript this can be accomplished by
var xmlDoc = null;
if ( xmlDoc != null)
{
xmlDoc.async=false;
xmlDoc.load("file name");
var x=xmlDoc.getElementsByTagName("tagName");
.
.
.
}
But, how to do this in adobe javascript?
Thank you,
Winata.
It uses an attached file (data object) as the XML source, but you can also use the doc.importDataObject method.
More information on all of this is in the Acrobat JavaScript Reference.
George