🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by cinematomico Tue, 03 Mar 2009 12:52
That specific XML node...
#783
Author: cinematomico
Date: Tue, 03 Mar 2009 12:52
7 lines
899 bytes
Hi
I have an ID document (CS3 - MAC - JavaScript) with a complex XML structure (about 700 nodes...).
I need to get the attributes of a specific node without making FOR statements because it takes a long time.
Basically every node in the XML structure has 5 attributes.
One of those is the ID.
Is it possible to get the node knowing the ID value?
Thanks anticipately.
Re: That specific XML node...
#787
Author: xbytor
Date: Tue, 03 Mar 2009 16:14
6 lines
1020 bytes
> Is it possible to get the node knowing the ID value?

Take a look at the XML.xpath() method. That's it's purpose. The version in 
Adobe's interpreters will choke on more complicated expressions, but looking for 
nodes with a particular attributes should be something it can handle.
Re: That specific XML node...
#788
Author: Peter Kahrel
Date: Tue, 03 Mar 2009 16:22
5 lines
749 bytes
Here's an example:

 <http://www.adobeforums.com/webx/.59b7651b/10>

Peter
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads