rem: case node.TEXT_NODE: if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length  == 0) { node.childNodes[i].parentNode.removeChild(node.childNodes[i]); } 
add: switch(node.childNodes[i].nodeType) { 
context: function BX_xml_removeWhiteSpaceNodes(node){		var l = node.childNodes.length -1 ;	for (var i = l; i >= 0; i--)	{	   switch(node.childNodes[i].nodeType)	   {			case node.TEXT_NODE:			if (node.childNodes[i].data.replace(/[\s\n\r]*/,"").length  == 0)			{				node.childNodes[i].parentNode.removeChild(node.childNodes[i]);			}						break;	        case node.COMMENT_NODE:				node.childNodes[i].parentNode.removeChild(node.childNodes[i]);			break;			case node.ATTRIBUTE_NODE:			break;			case node.CDATA_SECTION_NODE:    		case node.ELEMENT_NODE:		    case node.PROCESSING_INSTRUCTION_NODE:		    case node.DOCUMENT_TYPE_NODE:		    case node.ENTITY_NODE:				    case node.NOTATION_NODE:			    case node.ENTITY_REFERENCE_NODE:		    case node.DOCUMENT_NODE:			BX_xml_removeWhiteSpaceNodes(node.childNodes[i]);		}				}}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js