Hi all…
I’ve looked around for an explanation of xml syntax but none have clarified my issue here…
i have code that reads xml like:
<page src ="pages/page1.jpg"> <page src="pages/page2.jpg">
… the code that reads it is :
for (var _loc1 = pageXML.firstChild.firstChild; _loc1 != null; _loc1 = _loc1.nextSibling)
{ pageNames[_loc2] = _loc1.attributes.src; }
i need it to read xml that looks like this:
<page>pages/page1.jpg</page><page>pages/page2.jpg</page>
i am not sure what is the xml structure difference here… its still the firstchild.firstchild but the nodeValue not the attributes.src right? but _loc.nodeValue doesnt work