Article View: adobe.scripting.indesign
Article #14981[JS] Iterate through all XML elements in the active document?
From: pjredman
Date: Wed, 07 Jan 2004 23:30
Date: Wed, 07 Jan 2004 23:30
4 lines
1106 bytes
1106 bytes
I need to apply attributes to some XML elements and would like to do this by iterating through each XML element in the document, checking its xmlTag.name and creating the attribute as needed. I'm not sure how to handle the iteration of the XML elements lacking an allXMLElements property for the document object. I suppose this is done with some combination of While() but I've never attempted this sort of thing and can't even make a valid stab at it. Any suggestions? Thanks, Phil Redman
Technical Details
Message-ID:
<2ccf3f22.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,fe35846f9233a0b7,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-07 15:37:51 PST From: pjredman@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [JS] Iterate through all XML elements in the active document? Message-ID: <2ccf3f22.-1@webx.la2eafNXanI> Date: Wed, 7 Jan 2004 15:30:14 -0800 Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit