Android Utililty Methods XmlPullParser Move to Next

List of utility methods to do XmlPullParser Move to Next

Description

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

Method

booleanmoveToElement(XmlPullParser parser, String namespaceName, String name)
move To Element
while (Read(parser)) {
    if (IsStartElement(parser, namespaceName, name))
        return true;
return false;
voidnext(final XmlPullParser pp)
next
skipSubTree(pp);
pp.next();
DateTimenextDateTime(XmlPullParser parser, String tag)
next Date Time
parser.require(XmlPullParser.START_TAG, null, tag);
DateTime value = DateTime.parse(readText(parser));
parser.require(XmlPullParser.END_TAG, null, tag);
return value;
StringnextDirectChildTag( XmlPullParser paramXmlPullParser, int paramInt)
next Direct Child Tag
int i = paramInt + 1;
for (int j = paramXmlPullParser.next(); j != 1; j = paramXmlPullParser
        .next()) {
    int k = paramXmlPullParser.getDepth();
    if ((j == 2) && (k == i))
        return paramXmlPullParser.getName();
    if ((j == 3) && (k == paramInt))
        return null;
...
DoublenextDouble(XmlPullParser parser, String tag)
next Double
parser.require(XmlPullParser.START_TAG, null, tag);
Double value = Double.parseDouble(readText(parser));
parser.require(XmlPullParser.END_TAG, null, tag);
return value;
voidnextElement(XmlPullParser parser)
next Element
int type;
while ((type = parser.next()) != XmlPullParser.START_TAG
        && type != XmlPullParser.END_DOCUMENT) {
    ;
voidnextElement(XmlPullParser parser)
next Element
int type;
while ((type = parser.next()) != XmlPullParser.START_TAG
        && type != XmlPullParser.END_DOCUMENT) {
    ;
voidnextElement(XmlPullParser parser)
next Element
int type;
while ((type = parser.next()) != parser.START_TAG
        && type != parser.END_DOCUMENT) {
    ;
voidnextElement(XmlPullParser parser)
next Element
int type;
while ((type = parser.next()) != parser.START_TAG
        && type != parser.END_DOCUMENT) {
    ;
voidnextElement(XmlPullParser parser)
next Element
int type;
while ((type = parser.next()) != XmlPullParser.START_TAG
        && type != XmlPullParser.END_DOCUMENT)
    ;