i = 0; while (xml.firstChild.childNodes[i]) { node = xml.firstChild.childNodes[i]; trace("B: "+(node.nodeValue || node.firstChild.nodeValue)); i++;