🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2363

Re: Changing Values in XML tags

#2363
From: Stefan_Rakete
Date: Wed, 31 Dec 2008 13:09
16 lines
960 bytes
Hi Stefan,
you could use search and replace if your xml is placed in a textframe on the page.
If you are using CS3, this would be a perfect task for XML-Rules:

function ResetPrice(){
 this.name = "ResetPrice";
 this.xpath = "//Root/Product/ART_PRICE";	
 this.apply = function(myElement, myRuleProcessor){
  myElement.contents = "0.0";

}
}

Hope this helps

Stefan
Technical Details
Message-ID: <59b7651b.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!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: Stefan_Rakete@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Changing Values in XML tags
Message-ID: <59b7651b.1@webcrossing.la2eafNXanI>
Date: Wed, 31 Dec 2008 05:09:15 -0800
References: <59b7651b.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit