// assertEquals("<!--comment--><name age='123'>bad</name><sex>F</sex>",nd.innerText);
// assertEquals("<root><!--comment--><name age='123'>bad</name><sex>F</sex></root>",nd.outerText);
}
public void test_parseXML_by_innerXML_escape() throws SAXException, IOException {
NodeData nd = parseXML("<?xml version='1.0' encoding='UTF-8'?> <root><!--comment--><name age=''"123><&'>bad><'"123><&</name><sex>F<!--123--></sex><alias><![CDATA[>=123<>]]></alias><include refid='123'/></root>");
assertEquals("<name age=\"'"123><&\">bad><'\"123><&</name>",nd.childs.get(0).outerXML);
assertEquals("F",nd.childs.get(1).innerXML);
assertEquals("<![CDATA[>=123<>]]>",nd.childs.get(2).innerXML);
assertEquals("<include refid=\"123\"/>",nd.childs.get(3).outerXML);
}