XML file parsing problem

Hi All
I wrote an actionscript like the following:

function parsePack(success:Boolean)
{
if(success)
{

    cPackID = package_xml.firstChild.attributes["ID"];
    cfName = package_xml.firstChild.childNodes[0].firstChild;
        
    //Push the file and package details
    fileList.push(cfName);
    trace(fileList.push(cfName));
    packageList.push(cPackID);
            
}

}

I am getting the output as
05
09
06
10
07
11
08
12
04
13

I am able to parse the file and I am getting an output like above. But I want to have the output like this: 05,09,06,10,07,11,08,12,04,13 and again start with 05,06…without an end.

Can anyone help me in this regard…??
Thanks in advance…!
Nirmal.