# Xml and nodes? help me navigate!

**URL:** <https://forum.kirupa.com/t/xml-and-nodes-help-me-navigate/274251>\
**Category:** Uncategorized\
**Created:** [October 27, 2008, 5:09pm UTC](https://forum.kirupa.com/t/xml-and-nodes-help-me-navigate/274251 "2008-10-27T17:09:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jibble](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jibble/32/2265_2.png) [@jibble](https://forum.kirupa.com/u/jibble)\
**Post date:** [October 27, 2008, 5:09pm UTC](https://forum.kirupa.com/t/xml-and-nodes-help-me-navigate/274251/1 "2008-10-27T17:09:51Z")

</div>

HOPEFULLY this will be pretty quick and painless…😛

I’m having what seems to be a pathing problem with xml and firstChild/childNodes. I’m trying to fill one dynamic textbox with the “city” and another text box with “zip” but can’t seem to get it.

I have and xml file that looks like this

```auto
<database>
&#8722;
<signer>
<city>rome, italy</city>
<zip>
	 2121212112 </zip>
</signer>
</database>

```

and my AS code looks like this

```auto
theXML.onLoad = function() {
	var nodes = this.firstChild.childNodes;
	for (i=0; i<nodes.length; i++) {
		citybox.text +=(nodes*.firstChild.childNodes[0].nodeValue+ "
");
		zipbox.text +=(nodes*.firstChild.childNodes[1].nodeValue+ "
");
	}
}

```
