code: private String getText(XmlPullParser xpp) throws XmlPullParserException {
      if (xpp.getEventType() == XmlPullParser.TEXT) {
        return xpp.getText();
      }
      return null;
    }
docs: Returns text of given XML element.
  
  @throws XmlPullParserException upon parsing response xml