These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

XFA - locate specific nodes

alkaest2002
Registered: Dec 16 2010
Posts: 8

Hi everybody,
I need some help on the following issue.
I have been able to add a xml data structure to xfa.datasets.data.
The xml data structure looks like this:
 

John
Doe

Jane
Doe

 
Now, at runtime, I would like to get a specific node using the id attribute (e.g., the user types the id on a textfield and javascript returns name and surname values of the relative node).
Coming from Acroform, I thought that LC had a method like XMLData.applyXPath() to locate nodes based on certain criteria, but as a matter of fact I wasn't able to find it.
Does that mean that I have to loop trough all the data structure nodes to find the one I am interested in? Or am I approaching the whole problem from a wrong perspective?
Thank you very much for your assistance.
 
Pierpaolo

My Product Information:
LiveCycle Designer, Windows
alkaest2002
Registered: Dec 16 2010
Posts: 8
Ops, tags have been stripped (stupid me!)
the xml data structure looks like this:

...persons
......person id="A0001"
...........surname.....John....end of surname
...........name.....Doe......end of name
......end of person
......person id="A0002"
...........surname....Jane...end of surname
...........name....Doe......end of name
......end of person
....persons