public void XmlHelperCanParseAttributeWithGTandLTInValue()
{
String nonXmlData = " >some <data> in here '< ";
String xmlData="<xml><element attribute=\""+nonXmlData+"\"></element></xml>";
EntityTree doc = null;
try{
doc = XmlHelper.parseElement( xmlData );
}
catch(XmlParseException pex)
{
fail(pex.getMessage());
}
String result = doc.getChild("element").getAttribute("attribute");
assertEquals("Failed to parse attribute",nonXmlData,result);
}