rem: node = node.firstChild; 
add: { node = node.documentElement;  if (node == null) throw 'Document node has no root element'; } 
context: xml.toStringCont = function(node, ident){	if (node == null)		throw 'xml.toStringCont: node is null';			if (!ident)		ident = '';			//--- skip document node	if (node.nodeType == Node.DOCUMENT_NODE)		node = node.firstChild;		var result = '';		for (var i=0; i<node.childNodes.length; i++)	{		var child = node.childNodes[i];				if (child.nodeType == Node.ELEMENT_NODE)			result += xml.toString(child, ident +'   ');					else if (child.nodeType == Node.TEXT_NODE)			result += xml.escape(child.nodeValue);	}	return result;}
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/774711041c241914e6fab3c51d9c469abad78755/xml.js/buggy/web/geonetwork/scripts/core/kernel/xml.js