XML file parsing

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 want to have an output like 05,09,06,10,07,11,08,12,04,13 and again start with 05,06…without a stop.

Can anyone help me in this regard…??