x2 = new XML(); x2.ignoreWhite = true; x2.load("productlines.xml"); x2.onLoad = function() { trace(x2.toString()); trace(x2.firstChild.childNodes.length); };