Code example for XmlPullParser

Methods: getPositionDescription

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