🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18434

Removing XML structure

#18434
From: Jim Heissenbuttel
Date: Mon, 24 Mar 2003 23:49
16 lines
1190 bytes
I'd like to find an efficient way to untag a substantial amount of XML
structure quickly. Currently I am testing a script as such:

repeat with i from the (count of (every XML Element)) to 1 by -1
     tell XML Element i
           untag element
     end tell
end repeat


However, this is extremely slow. Has anyone found a good way to remove the
entire XML structure (below Root) very quickly?

Thanks.

Jh
Technical Details
Message-ID: <BAA4D998.1D73%jimh@rainiercolor.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,25fdf4f63eea2e2,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-24 16:07:54 PST
From: Jim Heissenbuttel <jimh@rainiercolor.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Removing XML structure
Message-ID: <BAA4D998.1D73%jimh@rainiercolor.com>
Date: Mon, 24 Mar 2003 15:49:44 -0800
Lines: 18
User-Agent: Microsoft-Entourage/10.1.1.2418
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit