# Is there another way to call XML info other than this?

**URL:** <https://forum.kirupa.com/t/is-there-another-way-to-call-xml-info-other-than-this/139784>\
**Category:** Uncategorized\
**Created:** [March 5, 2005, 5:43pm UTC](https://forum.kirupa.com/t/is-there-another-way-to-call-xml-info-other-than-this/139784 "2005-03-05T17:43:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Post date:** [March 5, 2005, 5:43pm UTC](https://forum.kirupa.com/t/is-there-another-way-to-call-xml-info-other-than-this/139784/1 "2005-03-05T17:43:00Z")

</div>

Hello,

I have been calling xml info from an xml file using this method:

```auto

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.
