Commit b3eefe68 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed to include entityrefs in the document instead of dismissing them.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@756 b35dd754-fafc-0310-a699-88a17e54d16e
parent 91215626
......@@ -302,8 +302,16 @@ public class XPPPacketReader {
}
case XmlPullParser.ENTITY_REF:
{
String text = pp.getText();
if (parent != null) {
parent.addText(text);
}
else {
if (text.trim().length() > 0) {
throw new DocumentException("Cannot have an entityref outside of the root document");
}
}
break;
}
case XmlPullParser.END_DOCUMENT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment