List of utility methods to do XmlPullParser Search
boolean | test(final XmlPullParser pp, final String tagName) test skipWhitespace(pp);
return pp.getEventType() == XmlPullParser.START_TAG
&& pp.getName().equals(tagName);
|
void | requireEndDocument(final XmlPullParser pp) require End Document skipWhitespace(pp); if (pp.getEventType() != XmlPullParser.END_DOCUMENT) throw new IllegalStateException("expecting end of document: " + pp.getPositionDescription()); |
boolean | findChildToDepth(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)) ... |