Question
Import XML [JS]
Hi all,
I am trying to import XML file into chosen template, please see below. I am not able to import XML file, please help me. After importing I want to save the indesign document on the location of XML file.
var FilterID = "InDesign Template: *.indt";
var FilterXML = "XML File: *.xml";
var myFile = File.openDialog("Please choose InDesign Template", FilterID);//To choose InDesign template
var myXML = File.openDialog("Please choose XML File", FilterXML);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
var myDoc = app.open(myFile);
//app.importXML(myFIle, myXML);
Thanks
I am trying to import XML file into chosen template, please see below. I am not able to import XML file, please help me. After importing I want to save the indesign document on the location of XML file.
var FilterID = "InDesign Template: *.indt";
var FilterXML = "XML File: *.xml";
var myFile = File.openDialog("Please choose InDesign Template", FilterID);//To choose InDesign template
var myXML = File.openDialog("Please choose XML File", FilterXML);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
var myDoc = app.open(myFile);
//app.importXML(myFIle, myXML);
Thanks