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

intMoveToContent(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;
...
voidbeginDocument(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);
voidbeginDocument(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);
voidbeginDocument(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);
voidbeginDocument(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);
voidbeginDocument(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)) {
...
voidbeginDocument(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);
booleanmatchNameSpaceUri( XmlPullParser paramXmlPullParser, String paramString)
match Name Space Uri
String str = paramXmlPullParser.getNamespace();
if (str == null)
    return paramString == null;
return str.equals(paramString);
booleanmatches(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;
booleanmatches(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;