🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2368

Re: Changing Values in XML tags

#2368
From: Peter Kahrel
Date: Thu, 01 Jan 2009 12:30
10 lines
925 bytes
You don't need a loop for this:

product = app.activeDocument.xmlElements[0].xmlElements.item ('Product'); 
product.xmlElements.item ('ART_PRICE').contents = '0.0';



works fine on your example (though you'll not see the effect until you collapse and expand the XML tree).

Peter
Technical Details
Message-ID: <59b7651b.4@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing
References: <59b7651b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d78f6b73256f6f00
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Kahrel" <kahrel@kahrel.plus.com>
Newsgroups: adobe.scripting.indesign
Subject: Re: Changing Values in XML tags
Message-ID: <59b7651b.4@webcrossing.la2eafNXanI>
Date: Thu, 1 Jan 2009 04:30:33 -0800
References: <59b7651b.-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!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!news4us.nl!webcrossing