List of utility methods to do XmlPullParser Check
void | require(final XmlPullParser pp, final String tagName) require skipWhitespace(pp); pp.require(XmlPullParser.START_TAG, null, tagName); |
void | requireAttr(final XmlPullParser pp, final String attrName, final String requiredValue) require Attr if (!requiredValue.equals(attr(pp, attrName))) throw new IllegalStateException("cannot find " + attrName + "=\"" + requiredValue + "\" />"); |