Android Utililty Methods XmlPullParser Search

List of utility methods to do XmlPullParser Search

Description

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

Method

booleantest(final XmlPullParser pp, final String tagName)
test
skipWhitespace(pp);
return pp.getEventType() == XmlPullParser.START_TAG
        && pp.getName().equals(tagName);
voidrequireEndDocument(final XmlPullParser pp)
require End Document
skipWhitespace(pp);
if (pp.getEventType() != XmlPullParser.END_DOCUMENT)
    throw new IllegalStateException("expecting end of document: "
            + pp.getPositionDescription());
booleanfindChildToDepth(XmlPullParser parser, int parentDepth, String namespaceName, String name)
find Child To Depth
if (GetDepth(parser) < parentDepth)
    return false;
while (Read(parser)) {
    int currentDepth = GetDepth(parser);
    if (currentDepth == parentDepth && IsEndElement(parser))
        return false;
    if (currentDepth > parentDepth
            && IsStartElement(parser, namespaceName, name))
...