Article View: adobe.scripting.indesign
Article #21044Re: Removing XML-tags
From: Alan Stearns
Date: Mon, 13 May 2002 01:24
Date: Mon, 13 May 2002 01:24
3 lines
1056 bytes
1056 bytes
Once you've deleted 5 elements out of 9, there are only 4 left, so you get an error when you try to delete element 6. You just need to iterate backwards: repeat with i from the count of (every XML Element) to 1 by -1 tell XML Element i untag element end tell end repeat
Technical Details
Message-ID:
<ef87960.0@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.airnews.net!cabal11.airnews.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef87960.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3b581a2ee9fbcd93 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-12 18:37:37 PST From: "Alan Stearns" <astearns@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.airnews.net!cabal11.airnews.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Removing XML-tags Message-ID: <ef87960.0@WebX.aaQKaf7vad4> Date: Sun, 12 May 2002 18:24:18 -0700 References: <ef87960.-1@WebX.aaQKaf7vad4> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit