List of utility methods to do XmlPullParser Move to Next
void | nextElement(XmlPullParser parser) next Element int type; while ((type = parser.next()) != parser.START_TAG && type != parser.END_DOCUMENT) { ; |
boolean | nextElementWithin(XmlPullParser parser, int outerDepth) next Element Within for (;;) { int type = parser.next(); if (type == XmlPullParser.END_DOCUMENT || type == XmlPullParser.END_TAG && parser.getDepth() == outerDepth) { return false; if (type == XmlPullParser.START_TAG ... |
boolean | nextElementWithin(XmlPullParser parser, int outerDepth) next Element Within for (;;) { int type = parser.next(); if (type == XmlPullParser.END_DOCUMENT || (type == XmlPullParser.END_TAG && parser.getDepth() == outerDepth)) { return false; if (type == XmlPullParser.START_TAG && parser.getDepth() == outerDepth + 1) { ... |
boolean | nextElementWithin(XmlPullParser parser, int outerDepth) next Element Within for (;;) { int type = parser.next(); if (type == XmlPullParser.END_DOCUMENT || (type == XmlPullParser.END_TAG && parser.getDepth() == outerDepth)) { return false; if (type == XmlPullParser.START_TAG && parser.getDepth() == outerDepth + 1) { ... |
void | nextEndTag(XmlPullParser pp) Call parser nextTag() and check that it is END_TAG, throw exception if not. if (pp.nextTag() != XmlPullParser.END_TAG) { throw new XmlPullParserException("expected END_TAG and not" + pp.getPositionDescription()); |
void | nextEndTag(XmlPullParser pp) Call parser nextTag() and check that it is END_TAG, throw exception if not. if (pp.nextTag() != XmlPullParser.END_TAG) { throw new XmlPullParserException("expected END_TAG and not" + pp.getPositionDescription()); |
void | nextEndTag(XmlPullParser pp, String namespace, String name) combine nextTag(); pp.require(XmlPullParser.END_TAG, namespace, name); pp.nextTag(); pp.require(XmlPullParser.END_TAG, namespace, name); |
void | nextEndTag(XmlPullParser pp, String namespace, String name) combine nextTag(); pp.require(XmlPullParser.END_TAG, namespace, name); pp.nextTag(); pp.require(XmlPullParser.END_TAG, namespace, name); |
Long | nextLong(XmlPullParser parser, String tag) next Long parser.require(XmlPullParser.START_TAG, null, tag);
Long value = Long.parseLong(readText(parser));
parser.require(XmlPullParser.END_TAG, null, tag);
return value;
|
void | nextStartTag(XmlPullParser pp) call parser nextTag() and check that it is START_TAG, throw exception if not. if (pp.nextTag() != XmlPullParser.START_TAG) { throw new XmlPullParserException("expected START_TAG and not " + pp.getPositionDescription()); |