Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML ENTITIES

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
<level_1>
<entry_a>guff</entry_a>
<entry_b>
<entry_c>guff</entry_c>
<entry_d>guff</entry_d>
</entry_b>
<entry_b>
<entry_c>guff</entry_c>
<entry_d>guff</entry_d>
</entry_b>
</level_1>

The above is a structure of xml that i have. I wish to perform a search on the <entry_b> entities but don't know where to start. I am using javascript. Can anyone help
 
ok..

I can help you with the xpath expression to find this node, but I cannot be sure of the syntax of the javascript!!

...

var myNodes = xmlDoc.selectNodes(&quot;local-name() = 'entry_b'&quot;);

...

where myNodes will be an array of xml nodes and xmlDoc is a DOMDocument object instance.


Hope this helps!!

matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top