Code example for XmlPullParserException

0
          "getNamespaceCount() not supported"); 
    } 
 
    public int getNamespaceCount(int depth)
        throws XmlPullParserException { 
      throw new XmlPullParserException(
          "getNamespaceCount() not supported"); 
    } 
 
    public String getPositionDescription() {
      return "XML file " + fileName + " line #" + getLineNumber() + " (sorry, not yet implemented)";
    } 
 
    public String getNamespaceUri(int pos)
        throws XmlPullParserException { 
      throw new XmlPullParserException(
          "getNamespaceUri() not supported"); 
    } 
 
    public int getColumnNumber() { 
      // Android always returns -1