Code example for XmlPullParser

Methods: getLineNumber

0
        return pp.getAttributeValue(null, qName);
    } 
 
    // -- Locator interface 
 
    public String getPublicId() { return null; }
    public String getSystemId() { return systemId; }
    public int getLineNumber() { return pp.getLineNumber(); }
    public int getColumnNumber() { return pp.getColumnNumber(); }
 
    // --- XMLReader interface 
 
    public boolean getFeature(String name)
        throws SAXNotRecognizedException, SAXNotSupportedException 
    { 
        if(NAMESPACES_FEATURE.equals(name)) {
            return pp.getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES);
        } else if(NAMESPACE_PREFIXES_FEATURE.equals(name)) {
            return pp.getFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES);
        } else if(VALIDATION_FEATURE.equals(name)) {
            return pp.getFeature(XmlPullParser.FEATURE_VALIDATION);