I’m new to working with xml and was wonder how I would access the <otherthumbs> node and get the data from the<image> node.
Here is an example of the xml:
<images>
<pic>
<category>Bodysuit</category>
<name>Body Suit 1</name>
<description>Body Suit 1 description.</description>
<mainimage>photos/bodysuit/large/bs1.jpg</mainimage>
<mainthumb>photos/bodysuit/small/bs1.jpg</mainthumb>
<price>$00.00</price>
<sizes>0 - 0</sizes>
<otherimages>photos/bodysuit/large/bs1.jpg</otherimages>
<otherthumbs>
<images>photos/bodysuit/small/bs1.jpg</images>
<images>photos/bodysuit/small/bs2.jpg</images>
</otherthumbs>
</pic>
</images>
Here is the ActionScript I have so far:
xmlNode = this.firstChild;
for (r=0; r<other_total; r++) {
otherthumbs[r] = xmlNode.childNodes*.childNodes[8].childNodes[r].firstChild.firstChild.nodeValue;
}
If anyone could help it would be great!
Thanks.