public void parserReadsCDATA()
{
String nonXmlData = " >some \" \n line2 \n line3 [text] in here '< ";
String xmlData="<xml><cdata><![CDATA["+nonXmlData+"]]></cdata></xml>";
EntityTree doc = null;
try{
doc = XmlHelper.parseElement( xmlData );
}
catch(XmlParseException pex)
{
fail(pex.getMessage());
}
String result = doc.getChild("cdata").getValue();
assertEquals("Failed to parse CDATA",nonXmlData,result);
}