public final class XmlPullParserUtil
extends java.lang.Object
XmlPullParser utility methods.| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAttributeValue(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String attributeName)
Returns the value of an attribute of the current start tag.
|
static boolean |
isEndTag(org.xmlpull.v1.XmlPullParser xpp)
Returns whether the current event is an end tag.
|
static boolean |
isEndTag(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String name)
Returns whether the current event is an end tag with the specified name.
|
static boolean |
isStartTag(org.xmlpull.v1.XmlPullParser xpp)
Returns whether the current event is a start tag.
|
static boolean |
isStartTag(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String name)
Returns whether the current event is a start tag with the specified name.
|
public static boolean isEndTag(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String name)
throws org.xmlpull.v1.XmlPullParserException
xpp - The XmlPullParser to query.name - The specified name.org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.public static boolean isEndTag(org.xmlpull.v1.XmlPullParser xpp)
throws org.xmlpull.v1.XmlPullParserException
xpp - The XmlPullParser to query.org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.public static boolean isStartTag(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String name)
throws org.xmlpull.v1.XmlPullParserException
xpp - The XmlPullParser to query.name - The specified name.org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.public static boolean isStartTag(org.xmlpull.v1.XmlPullParser xpp)
throws org.xmlpull.v1.XmlPullParserException
xpp - The XmlPullParser to query.org.xmlpull.v1.XmlPullParserException - If an error occurs querying the parser.public static java.lang.String getAttributeValue(org.xmlpull.v1.XmlPullParser xpp,
java.lang.String attributeName)
xpp - The XmlPullParser to query.attributeName - The name of the attribute.