Accessing a particular part of XML from Actionscript..please help!

Hi there, I’m just wondering how I would refer to the <song> attribute shown in bold below, from actionscript! Would it be something like this?

playlist.childNodes[0].firstChild.song

It doesn’t seem to work! Thanks :slight_smile:

<?xml version="1.0"?>
<polls>
<poll title="Who do you think should win?">
    <answers>
    <answer>
        <name>Michael</name>
        <tally>0</tally>
        <image>www.clipart.com/test.jpg</image>
        <flash>songs/1.swf</flash>
**        <song>songs/mp3s/1.mp3</song>**
    </answer>
    <answer>
        <name>Sophie</name>
        <tally>0</tally>
        <image>http://www.clipart.com/test2.jpg</image>
        <flash>songs/1.swf</flash>        
**        <song>songs/test2.mp3</song>**
    </answer>