🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1956

Re: Import XML [JS]

#1956
From: Lin_Xia
Date: Thu, 22 Jan 2009 00:44
46 lines
3190 bytes
Change 
  app.importXML(myFIle, myXML);
to
  myDoc.importXML(myXML);

Lin

> -----Original Message-----
> From: rajeevkumar [mailto:member@adobeforums.com]
> Sent: Wednesday, January 21, 2009 4:45 AM
> To: adobe.scripting.indesign@adobeforums.com
> Subject: Import XML [JS]
> 
> A new discussion was started by rajeevkumar in
> 
> InDesign Scripting --
>   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
> 
> 
> ________________________________
> 
> View/reply at Import XML [JS]
> <http://www.adobeforums.com/webx?13@@.59b7926b>
> Replies by email are OK.
> Use the unsubscribe
> <http://www.adobeforums.com/webx?280@@.59b7926b!folder=.eea52bc>  form
> to cancel your email subscription.
> 
Technical Details
Message-ID: <A425445A346CBE4F9DD232C1ED9F5F47BD76B2369E@NAMBX01.corp.adobe.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7926b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2939f3e6cb46761a
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Lin_Xia@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Import XML [JS]
Message-ID: <A425445A346CBE4F9DD232C1ED9F5F47BD76B2369E@NAMBX01.corp.adobe.com>
Date: Wed, 21 Jan 2009 16:44:19 -0800
References: <59b7926b.-1@webcrossing.la2eafNXanI>
Lines: 49
Received: from exprod6og106.obsmtp.com [64.18.1.191] by adobeforums.com; Wed, 21 Jan 2009 16:44:58 -0800
Received: from source ([192.150.11.134]) by exprod6ob106.postini.com ([64.18.5.12]) with SMTP
 ID DSNKSXfBa2TQFZ+8cz3zqQP+b+co2yVkOvhk@postini.com; Wed, 21 Jan 2009 16:44:27 PST
Received: from inner-relay-3.eur.adobe.com ([192.150.8.236])
 by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id n0M0dOeM015390
 for <adobe.scripting.indesign@adobeforums.com>; Wed, 21 Jan 2009 16:39:25 -0800 (PST)
Received: from nahub01.corp.adobe.com (nahub01.corp.adobe.com [10.8.189.97])
 by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id n0M0iOY2003294
 for <adobe.scripting.indesign@adobeforums.com>; Wed, 21 Jan 2009 16:44:24 -0800 (PST)
Received: from excas03.corp.adobe.com (10.8.189.123) by nahub01.corp.adobe.com
 (10.8.189.97) with Microsoft SMTP Server (TLS) id 8.1.336.0; Wed, 21 Jan 2009
 16:44:23 -0800
Received: from NAMBX01.corp.adobe.com ([10.8.189.91]) by
 excas03.corp.adobe.com ([10.8.189.123]) with mapi; Wed, 21 Jan 2009 16:44:22
 -0800
Thread-Topic: Import XML [JS]
Thread-Index: Acl70Mpfe0d3WIImQ3+cRoGKQG70WAAWaRaA
Accept-Language: en-US
Content-Language: en-US
acceptlanguage: en-US
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit