Article View: adobe.scripting.indesign
Article #1880Import XML [JS]
From: rajeevkumar
Date: Wed, 21 Jan 2009 12:45
Date: Wed, 21 Jan 2009 12:45
13 lines
1234 bytes
1234 bytes
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
Technical Details
Message-ID:
<59b7926b.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,2939f3e6cb46761a,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: rajeevkumar <rajeev_kumar_sinha2005@yahoo.co.in> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Import XML [JS] Message-ID: <59b7926b.-1@webcrossing.la2eafNXanI> Date: Wed, 21 Jan 2009 04:45:24 -0800 Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Original-Lines: 17