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

**URL:** <https://forum.kirupa.com/t/accessing-a-particular-part-of-xml-from-actionscript-please-help/277368>\
**Category:** Uncategorized\
**Created:** [December 11, 2008, 9:18am UTC](https://forum.kirupa.com/t/accessing-a-particular-part-of-xml-from-actionscript-please-help/277368 "2008-12-11T09:18:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christam1](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@Christam1](https://forum.kirupa.com/u/Christam1)\
**Post date:** [December 11, 2008, 9:18am UTC](https://forum.kirupa.com/t/accessing-a-particular-part-of-xml-from-actionscript-please-help/277368/1 "2008-12-11T09:18:58Z")

</div>

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?

```auto
playlist.childNodes[0].firstChild.song

```

It doesn’t seem to work! Thanks 🙂

```auto
<?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>

```
