Article View: adobe.scripting.indesign
Article #18568Multiple instances of an XML tag
From: adamcoop
Date: Tue, 11 Mar 2003 23:44
Date: Tue, 11 Mar 2003 23:44
22 lines
1119 bytes
1119 bytes
I have a document set up with the following XML tree:
Root Body
Body_Text
Body_Text_Bold
Body_Text
Body_Text_Bold
When I do:
set XMLcontents to (contents of XML Element "Body_Text" as string)
It only picks up the contents of the first instance of "Body_Text".
How do I work with the second instance of "Body_Text"?
Technical Details
Message-ID:
<1de84025.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!nntp.infostrada.it!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,e169d62697b085cd,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-11 16:07:52 PST From: adamcoop <adam.c@ncprint.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Multiple instances of an XML tag Message-ID: <1de84025.-1@WebX.la2eafNXanI> Date: Tue, 11 Mar 2003 15:44:46 -0800 Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit