[flexcoders] How can I save XML path deep inside my XML data ?

2008-01-31 Thread helihobby
Hello,

I have a very large XML.

I have a function which reads the XML and finds something that I am
looking for ( lets say data123 )

Once I find it I wish to save the absolute path to it ...
Is that possible ?

For example:

I wish to save:

myXml.books[0].book.covers.cover[2].items[2].data123

However I can not build the above statement since the XML is dynamic.
I wish for the function to return the absolute path of the item after
I find it ...

Thanks in advance,

Sean.








RE: [flexcoders] How can I save XML path deep inside my XML data ?

2008-01-31 Thread Tracy Spratt
What do you mean by ...save the absolute path...? 

 

Save a reference?

 

Save a string representation of the ancestor chain?

 

What do you want to do?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Thursday, January 31, 2008 6:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I save XML path deep inside my XML data ?

 

Hello,

I have a very large XML.

I have a function which reads the XML and finds something that I am
looking for ( lets say data123 )

Once I find it I wish to save the absolute path to it ...
Is that possible ?

For example:

I wish to save:

myXml.books[0].book.covers.cover[2].items[2].data123

However I can not build the above statement since the XML is dynamic.
I wish for the function to return the absolute path of the item after
I find it ...

Thanks in advance,

Sean.