Article View: adobe.scripting.indesign
Article #2380Re: Changing Values in XML tags
From: Dirk.Becker
Date: Fri, 02 Jan 2009 09:52
Date: Fri, 02 Jan 2009 09:52
11 lines
1278 bytes
1278 bytes
The errors could be - within the xpath (unsupported functions etc.), - in the results (you could find XML attributes etc. where you expect XML elements), - in other manipulating code. The error handling just ensures the rule processor is released, as it is bound to the application rather than to the script session. This is extracted from a larger script that I wrote in the earliest days of CS3 - a find-change style dialog to demonstrate XPath features, where the relevant variables were exposed by UI, and the functionality (that line setting the contents) had also several alternatives. As I have some spare time now, I plan to revive this script and publish it on my web site. Dirk
Technical Details
Message-ID:
<59b7651b.11@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<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: Dirk.Becker@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.11@webcrossing.la2eafNXanI> Date: Fri, 2 Jan 2009 01:52:43 -0800 References: <59b7651b.-1@webcrossing.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit