# Navigating XML

**URL:** <https://forum.kirupa.com/t/navigating-xml/167686>\
**Category:** flash\
**Created:** [October 31, 2005, 1:37am UTC](https://forum.kirupa.com/t/navigating-xml/167686 "2005-10-31T01:37:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gromhellscream](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gromhellscream](https://forum.kirupa.com/u/gromhellscream)\
**Post date:** [October 31, 2005, 1:37am UTC](https://forum.kirupa.com/t/navigating-xml/167686/1 "2005-10-31T01:37:21Z")

</div>

Hey there…im having trouble with this xml file.  
what im trying to do is load a thumbnail,then its respective swf file through xml.

The structure has to stay the same because of update i will be making to it, so if anyone can point out what i have to do to display the respective .swf can you please post.

Cheers

XML

```auto

<featured>
		  <one thumb="1.jpg">one.swf</one>
</featured>

```

Heres the AS

```auto

// Load XML
function loadXML(loaded){
		_root.featured =
		this.firstChild.childNodes[0].childNodes[0].firstChild;
		
		_root.one =
		this.firstChild.childNodes[0].attributes;
		
		trace(_root.one.thumb) // Displays Attribute
		
};
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("this.xml");

```
