Class SmackXmlParser

    • Method Detail

      • newXmlParser

        public static XmlPullParser newXmlParser​(Reader reader)
                                          throws XmlPullParserException
        Creates a new XmlPullParser suitable for parsing XMPP. This means in particular that FEATURE_PROCESS_NAMESPACES is enabled.

        Note that not all XmlPullParser implementations will return a String on getText() if the parser is on START_ELEMENT or END_ELEMENT. So you must not rely on this behavior when using the parser.

        reader - a reader to read the XML data from.
        A suitable XmlPullParser for XMPP parsing.
        XmlPullParserException - in case of an XmlPullParserException.