code: public static XmlPullParser newXmppParser(Reader reader) throws XmlPullParserException {
          XmlPullParser parser = newXmppParser();
          parser.setInput(reader);
          return parser;
      }
docs: Creates a new XmlPullParser suitable for parsing XMPP. This means in particular that
  FEATURE_PROCESS_NAMESPACES is enabled.
  <p>
  Note that not all XmlPullParser implementations will return a String on
  <code>getText()</code> if the parser is on START_TAG or END_TAG. So you must not rely on this
  behavior when using the parser.
  </p>
  
  @param reader
  @return A suitable XmlPullParser for XMPP parsing
  @throws XmlPullParserException