🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17942

Re: Searching XML-elements?

#17942
From: Olav Kvern
Date: Tue, 29 Apr 2003 07:41
11 lines
1365 bytes
Johan--

This is why I prefer doing my XML manipulations outside InDesign. Inside InDesign, I can't use XPath to find elements; outside InDesign, it's easy.

Do you have to do this inside InDesign, or can you export and then re-import the XML data? If you can, you can do some very cool things with XPath to find elements.

If you can't, consider using InDesign's Search method to find the text of an element, then get the AssociatedXMLElement of the found text to get a reference to the element. The only problem with this approach is that the XML has to be placed somewhere on a page in the document--otherwise, the Search method won't find it.

Thanks,

Ole
Technical Details
Message-ID: <1de8ea98.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8ea98.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a372ad9865e2a860
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-29 01:09:39 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Searching XML-elements?
Message-ID: <1de8ea98.0@WebX.la2eafNXanI>
Date: Tue, 29 Apr 2003 00:41:43 -0700
References: <1de8ea98.-1@WebX.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit