Android Utililty Methods XmlPullParser Check

List of utility methods to do XmlPullParser Check

Description

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

Method

voidrequire(final XmlPullParser pp, final String tagName)
require
skipWhitespace(pp);
pp.require(XmlPullParser.START_TAG, null, tagName);
voidrequireAttr(final XmlPullParser pp, final String attrName, final String requiredValue)
require Attr
if (!requiredValue.equals(attr(pp, attrName)))
    throw new IllegalStateException("cannot find " + attrName
            + "=\"" + requiredValue + "\" />");