mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 01:29: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:
parent
94a16ba41e
commit
54b18e3575
5 changed files with 25 additions and 109 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue