Android Utililty Methods XmlPullParser Skip

List of utility methods to do XmlPullParser Skip

Description

The list of methods to do XmlPullParser Skip are organized into topic(s).

Method

voidskip(XmlPullParser parser)
Skips the next tag and all of its children
if (parser.getEventType() != XmlPullParser.START_TAG) {
    throw new IllegalStateException();
int depth = 1;
while (depth != 0) {
    switch (parser.next()) {
    case XmlPullParser.END_TAG:
        depth--;
...
voidskip(XmlPullParser parser)
skip
if (parser.getEventType() != XmlPullParser.START_TAG) {
    throw new IllegalStateException();
int depth = 1;
while (depth != 0) {
    switch (parser.next()) {
    case XmlPullParser.END_TAG:
        depth--;
...
voidskip(XmlPullParser parser)
skip
int depth = 1;
if (parser.getEventType() != XmlPullParser.START_TAG) {
    throw new IllegalStateException("Parser must be on start tag");
while (depth > 0) {
    switch (parser.next()) {
    case XmlPullParser.START_TAG:
        depth++;
...
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type = parser.getEventType();
if (type != XmlPullParser.START_TAG) {
    throw new IllegalStateException();
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth))
    ;
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
voidskipCurrentTag(XmlPullParser parser)
skip Current Tag
int outerDepth = parser.getDepth();
int type;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
        && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {