This is a piece of my XML document:
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<mfVictor>
<decal>
<company>Victor</company>
<title>Wood Horn with Blue Background</title>
<image>
<url>victor01.jpg</url>
<width>60</width>
<height>60</height>
<name>Wood Horn Blue Background</name>
<link></link>
</image>
<price>$15.00</price>
<instock>In Stock</instock>
<notes>none</notes>
</decal>
</mfVictor>
</catalog>
I have a function that generates a list of the text from each "title" element. So then, onmousedown of each list item I want to navigate to the "decal" and access all of its children. So far I have this:
//decal[contains(.,\'"+itemName+"\')]
where the itemName is this.innerHTML passed to the function. It looks like the decal is accessed because in the console.log I can see an XMLobject with a length of 1. But I can't figure out how to access either the children of "decal" or the siblings of "title".
Thanks for reading.