xml = new XML(); xml.ignoreWhite = true; xml.onLoad = function(OK) { if (OK) { Inst.text += this.firstChild[0].text; } }; xml.load("file.xml");