Code example for XmlPullParser

Methods: getPositionDescription

0
    } 
 
    @SuppressWarnings("serial") 
    public static class ParseException extends XmlPullParserException {
        public ParseException(String msg, XmlPullParser parser) {
            super(msg + " at " + parser.getPositionDescription());
        } 
    } 
 
    @SuppressWarnings("serial") 
    public static class IllegalStartTag extends ParseException { 
        public IllegalStartTag(XmlPullParser parser, String parent) {
            super("Illegal start tag " + parser.getName() + " in " + parent, parser);
        } 
    } 
 
    @SuppressWarnings("serial") 
    public static class IllegalEndTag extends ParseException { 
        public IllegalEndTag(XmlPullParser parser, String parent) {
            super("Illegal end tag " + parser.getName() + " in " + parent, parser);
        }