🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14996

Re: [JS] Iterate through all XML elements in the active document?

#14996
From: pjredman
Date: Thu, 08 Jan 2004 19:26
8 lines
1437 bytes
Dave,

It is possible to address XML elements associated with page items but this doesn't cover all of the possibilities. Some XML elements aren't associated with any page item (empty elements, the Root element). Also pageItem.associatedXMLElement only exposes the one XML element with which the pageItem has been tagged, and does not provide direct access to it's child elements. So in the end we're faced with the same problem. There could be a large number of offspring elements that cannot be addressed directly in this way. In practice this isn't usually a problem but addressing the XML elements directly seems like a more airtight approach.

I guess I'll have to wait until I've absorbed more JavaScript.

Thanks for responding,
Phil
Technical Details
Message-ID: <2ccf3f22.4@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf3f22.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,fe35846f9233a0b7
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-08 11:38:07 PST
From: pjredman@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS] Iterate through all XML elements in the active document?
Message-ID: <2ccf3f22.4@webx.la2eafNXanI>
Date: Thu, 8 Jan 2004 11:26:56 -0800
References: <2ccf3f22.-1@webx.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit