Hello,
I have been calling xml info from an xml file using this method:
function loadXML2(loaded) {
if (loaded) {
_root.button1 = this.firstChild.childNodes[0].childNodes[70].firstChild.nodeValue;
_root.button2 = this.firstChild.childNodes[0].childNodes[71].firstChild.nodeValue;
_root.button3 = this.firstChild.childNodes[0].childNodes[72].firstChild.nodeValue;
_root.button4 = this.firstChild.childNodes[0].childNodes[73].firstChild.nodeValue;
_root.button5 = this.firstChild.childNodes[0].childNodes[74].firstChild.nodeValue;
the only thing is, if I have to add something, the childnode numbering has to be redone.
Is there a way to call a specific tag or group like <these_links> other than by calling them by childNodes in numeric order?
Thanks in advance.