# Getting XML attribute values

**URL:** <https://forum.kirupa.com/t/getting-xml-attribute-values/229478>\
**Category:** Uncategorized\
**Created:** [June 17, 2007, 9:17pm UTC](https://forum.kirupa.com/t/getting-xml-attribute-values/229478 "2007-06-17T21:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJSimpson](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@AJSimpson](https://forum.kirupa.com/u/AJSimpson)\
**Post date:** [June 17, 2007, 9:17pm UTC](https://forum.kirupa.com/t/getting-xml-attribute-values/229478/1 "2007-06-17T21:17:20Z")

</div>

Hello, I have this XML file:

> \<?xml version=“1.0” encoding=“utf-8”?\>  
> \<winners\>  
> \<thunder5 name=“Jonny James” place=“Finished 3rd” about=“Good, unique racing skills” /\>  
> \</winners\>  
> And this actionscript (2.0):

> 

var my\_xml = new XML();  
my\_xml.onLoad = function(success) {

```
if (success) {

    trace(my_xml. **&lt;stuff_to_change&gt;** );

}

```

};  
my\_xml.load(“belekas.xml”);  
What shoud I write instead of “ **\<stuff\_to\_change\>** ” to get flash to trace “Jonny James”, or “Good, unique racing skills”?

Thanks for your help,  
AJSimpson
