Code example for XmlPullParserException

0
      // instead of throwing an XmlPullParserException. 
      return null; 
    } 
 
    public void setInput(Reader in) throws XmlPullParserException {
      throw new XmlPullParserException("setInput() not supported");
    } 
 
    public void setInput(InputStream inputStream, String inputEncoding)
        throws XmlPullParserException { 
      throw new XmlPullParserException("setInput() not supported");
    } 
 
    public void defineEntityReplacementText( 
        String entityName, String replacementText)
        throws XmlPullParserException { 
      throw new XmlPullParserException(
          "defineEntityReplacementText() not supported"); 
    } 
 
    public String getNamespacePrefix(int pos)