Article View: adobe.scripting.indesign
Article #2194Re: Changing Values in XML tags
From: Olav_Kvern
Date: Mon, 12 Jan 2009 19:51
Date: Mon, 12 Jan 2009 19:51
17 lines
1200 bytes
1200 bytes
Fellow Scripters, If you're using CS4, there's a nice method for doing this--here it is, straight from the Object Model Viewer: XMLElement.evaluateXPathExpression (using: string , prefixMappingTable:Array of any):Array of XMLItem Adobe InDesign CS4 (6.0) Object Model Evaluates an XPath expression starting at this XML element in the structure. using: Data Type: string The XPath expression. prefixMappingTable: Data Type: Array of any The namespace mapping table. Can accept: Array of Arrays of 2 Strings. (Optional) There's no need to create an XML rule to do it, as we had to do in CS3. Thanks, Ole
Technical Details
Message-ID:
<59b7651b.15@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: Olav_Kvern@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.15@webcrossing.la2eafNXanI> Date: Mon, 12 Jan 2009 11:51:17 -0800 References: <59b7651b.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit