How to know if a XML list have a child? My code below is using hard code stating that I want to run the child of my XML. But I wouldn't want to write write every children() of it if I have a lot of child.
private function dataLevel():void {
for (var j:Number=0; j<xmlList.length(); j++) {
createBranch();
for (var k:int = 0; k<xmlList[j].children().length(); k++) {
createBranch();
}
for (var l:int = 0; l<xmlList[j].children().children().length(); l++) {
createBranch();
}
}
}