# Help with XML

**URL:** https://forum.kirupa.com/t/help-with-xml/143930
**Category:** Uncategorized
**Created:** [April 10, 2005, 5:13am UTC](https://forum.kirupa.com/t/help-with-xml/143930 "2005-04-10T05:13:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![drosa10](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@drosa10](https://forum.kirupa.com/u/drosa10)
#### Post date: [April 10, 2005, 5:13am UTC](https://forum.kirupa.com/t/help-with-xml/143930/1 "2005-04-10T05:13:55Z")

</div>

I have this code in my actionscript:

```auto
 
stop();
xml_file = new XML();
xml_file.load("data.xml");
xml_file.onLoad = function(success) {
 if (success) {
  names = this.childNodes;
  for (i=0; i<names.length; i++) {
   if(names*.nodeName=="drosa"){
	trace("oh yeah!")
   }
  }
 }
};

```

I want Flash to trace OH yeah! if the name of one of my nodes in my xml file is equal to “drosa”

Its not a problem with the XML. I’ve already checked that. What is wrong?

(This is my first time using XML with Flash so it might be a really obvious or stupid error.)
