Android XmlPullParser Skip skipCurrentTag(XmlPullParser parser)

Here you can find the source of skipCurrentTag(XmlPullParser parser)

Description

skip Current Tag

Declaration

public static void skipCurrentTag(XmlPullParser parser)
            throws XmlPullParserException, IOException 

Method Source Code

//package com.java2s;
import java.io.IOException;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class Main {
    public static void skipCurrentTag(XmlPullParser parser)
            throws XmlPullParserException, IOException {
        int outerDepth = parser.getDepth();
        int type;
        while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
                && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) {
        }/*from   ww w.j a v a2 s.  co m*/
    }
}

Related

  1. skip(XmlPullParser parser)
  2. skip(XmlPullParser parser)
  3. skip(XmlPullParser parser)
  4. skipCurrentTag(XmlPullParser parser)
  5. skipCurrentTag(XmlPullParser parser)
  6. skipCurrentTag(XmlPullParser parser)
  7. skipCurrentTag(XmlPullParser parser)
  8. skipCurrentTag(XmlPullParser parser)