List of utility methods to do XmlPullParser Search
int | MoveToContent(XmlPullParser parser) Move To Content if (parser == null) throw new NullPointerException(); while (parser.getEventType() == XmlPullParser.PROCESSING_INSTRUCTION || parser.getEventType() == XmlPullParser.DOCDECL || parser.getEventType() == XmlPullParser.IGNORABLE_WHITESPACE || parser.getEventType() == XmlPullParser.START_DOCUMENT) { if (!Read(parser)) { break; ... |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) { ; if (type != XmlPullParser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + ", expected " + firstElementName); |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) { ; if (type != XmlPullParser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + ", expected " + firstElementName); |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != parser.START_TAG && type != parser.END_DOCUMENT) { ; if (type != parser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + ", expected " + firstElementName); |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != parser.START_TAG && type != parser.END_DOCUMENT) { ; if (type != parser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + ", expected " + firstElementName); |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT) ; if (type != XmlPullParser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { ... |
void | beginDocument(XmlPullParser parser, String firstElementName) begin Document int type; while ((type = parser.next()) != parser.START_TAG && type != parser.END_DOCUMENT) { ; if (type != parser.START_TAG) { throw new XmlPullParserException("No start tag found"); if (!parser.getName().equals(firstElementName)) { throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + ", expected " + firstElementName); |
boolean | matchNameSpaceUri( XmlPullParser paramXmlPullParser, String paramString) match Name Space Uri String str = paramXmlPullParser.getNamespace(); if (str == null) return paramString == null; return str.equals(paramString); |
boolean | matches(XmlPullParser pp, int type, String namespace, String name) Tests if the current event is of the given type and if the namespace and name match. boolean matches = type == pp.getEventType() && (namespace == null || namespace .equals(pp.getNamespace())) && (name == null || name.equals(pp.getName())); return matches; |
boolean | matches(XmlPullParser pp, int type, String namespace, String name) Tests if the current event is of the given type and if the namespace and name match. boolean matches = type == pp.getEventType() && (namespace == null || namespace .equals(pp.getNamespace())) && (name == null || name.equals(pp.getName())); return matches; |