add: debug.print("QueryHistory.toXml: " + xml); 
context:     this.toXml = function() {        var parentName = "query-history";        var queryName = "query";        var xml = "<" + parentName + ">\n";        // values() yields an unstable order,        // so we use listNode.childNodes instead.        var nodes = this.listNode.childNodes;        var query = null;        for (var i = 0; i < nodes.length; i++) {            // XPath would be data($query/*[1]/text()[1])            query = nodes[i].firstChild.firstChild.nodeValue;            if (null != query && "" != query) {                // I'm tempted to wrap each query in a CDATA,                // but the query might use CDATA sections too.                xml += "<" + queryName + ">"                    + escapeXml(query)                    + "</" + queryName + ">\n";            }        }        xml += "</" + parentName + ">\n";        //debug.print("QueryHistory.toXml: " + xml);        return xml;    }
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js