1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Make XHMTMLExtensionProvider use parseElement()

which makes the whole provider much simpler.

Also use CharSequence as Base for XHTML-IM bodies.
This commit is contained in:
Florian Schmaus 2014-07-05 15:04:35 +02:00
parent 94a16ba41e
commit 54b18e3575
5 changed files with 25 additions and 109 deletions

View file

@ -63,8 +63,7 @@ public class PacketParserUtils {
}
public static XmlPullParser getParserFor(Reader reader) throws XmlPullParserException, IOException {
XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser();
parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
XmlPullParser parser = newXmppParser();
parser.setInput(reader);
// Wind the parser forward to the first start tag