I am having trouble getting a specific node in an XML doc, when the
doc contains various nodes that contain sub-nodes with the same name.
It probably easiest to just show an example.

For example, with this XML:

<foo>
   <id>100</id>
   <bar>
      <id>200</id>
   </bar>
<foo>

if i do this jquery

var fooId = xml.find("id").text();

It returns "100200"   It is returning both "id" nodes, when all i want
is the foo id node.   How can i select only foo's id node.
t

thx,

Joe C

Reply via email to