🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9964

Re: [JS][CS2] Import XML to selected Element

#9964
From: Dave_Saunders
Date: Tue, 11 Jul 2006 18:34
7 lines
924 bytes
Based on looking at page 1221 of the reference, I'd say that the mistake you're making is to select the element rather than import to it.

app.activeDocument.xmlElements.item("templates").xmlElements.item("collection").importXML(myFile);

looks like what you should be doing.

Dave
Technical Details
Message-ID: <3bc0e0dd.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0e0dd.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,3400098ef9a6234
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS][CS2] Import XML to selected Element
Message-ID: <3bc0e0dd.0@webcrossing.la2eafNXanI>
Date: Tue, 11 Jul 2006 11:34:01 -0700
References: <3bc0e0dd.-1@webcrossing.la2eafNXanI>
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing