docs/doc/reference/com/google/android/exoplayer2/util/XmlPullParserUtil.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classXmlPullParserUtilextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
XmlPullParser utility methods.
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static String | getAttributeValue(XmlPullParser xpp, String attributeName) |
Deprecated.
Returns the value of an attribute of the current start tag.
|
| static String | getAttributeValueIgnorePrefix(XmlPullParser xpp, String attributeName) |
Deprecated.
Returns the value of an attribute of the current start tag.
|
| static boolean | isEndTag(XmlPullParser xpp) |
Deprecated.
Returns whether the current event is an end tag.
|
| static boolean | isEndTag(XmlPullParser xpp, String name) |
Deprecated.
Returns whether the current event is an end tag with the specified name.
|
| static boolean | isStartTag(XmlPullParser xpp) |
Deprecated.
Returns whether the current event is a start tag.
|
| static boolean | isStartTag(XmlPullParser xpp, String name) |
Deprecated.
Returns whether the current event is a start tag with the specified name.
|
| static boolean | isStartTagIgnorePrefix(XmlPullParser xpp, String name) |
Deprecated.
Returns whether the current event is a start tag with the specified name. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static boolean isEndTag([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html "class or interface in org.xmlpull.v1")xpp,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name)
throws[XmlPullParserException](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParserException.html "class or interface in org.xmlpull.v1")
Deprecated.
Returns whether the current event is an end tag with the specified name.
Parameters:xpp - The XmlPullParser to query.name - The specified name.Returns:Whether the current event is an end tag with the specified name.Throws:XmlPullParserException - If an error occurs querying the parser.
-
public static boolean isEndTag([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html "class or interface in org.xmlpull.v1")xpp)
throws[XmlPullParserException](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParserException.html "class or interface in org.xmlpull.v1")
Deprecated.
Returns whether the current event is an end tag.
Parameters:xpp - The XmlPullParser to query.Returns:Whether the current event is an end tag.Throws:XmlPullParserException - If an error occurs querying the parser.
-
public static boolean isStartTag([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html "class or interface in org.xmlpull.v1")xpp,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name)
throws[XmlPullParserException](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParserException.html "class or interface in org.xmlpull.v1")
Deprecated.
Returns whether the current event is a start tag with the specified name.
Parameters:xpp - The XmlPullParser to query.name - The specified name.Returns:Whether the current event is a start tag with the specified name.Throws:XmlPullParserException - If an error occurs querying the parser.
-
public static boolean isStartTag([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html "class or interface in org.xmlpull.v1")xpp)
throws[XmlPullParserException](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParserException.html "class or interface in org.xmlpull.v1")
Deprecated.
Returns whether the current event is a start tag.
Parameters:xpp - The XmlPullParser to query.Returns:Whether the current event is a start tag.Throws:XmlPullParserException - If an error occurs querying the parser.
-
public static boolean isStartTagIgnorePrefix([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html "class or interface in org.xmlpull.v1")xpp,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")name)
throws[XmlPullParserException](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParserException.html "class or interface in org.xmlpull.v1")
Deprecated.
Returns whether the current event is a start tag with the specified name. If the current event has a raw name then its prefix is stripped before matching.
Parameters:xpp - The XmlPullParser to query.name - The specified name.Returns:Whether the current event is a start tag with the specified name.Throws:XmlPullParserException - If an error occurs querying the parser.
-
@Nullable
public static[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getAttributeValue([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html?is-external=true "class or interface in org.xmlpull.v1")xpp,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")attributeName)
Deprecated.
Returns the value of an attribute of the current start tag.
Parameters:xpp - The XmlPullParser to query.attributeName - The name of the attribute.Returns:The value of the attribute, or null if the current event is not a start tag or if no such attribute was found.
-
@Nullable
public static[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getAttributeValueIgnorePrefix([XmlPullParser](https://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html?is-external=true "class or interface in org.xmlpull.v1")xpp,[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")attributeName)
Deprecated.
Returns the value of an attribute of the current start tag. Any raw attribute names in the current start tag have their prefixes stripped before matching.
Parameters:xpp - The XmlPullParser to query.attributeName - The name of the attribute.Returns:The value of the attribute, or null if the current event is not a start tag or if no such attribute was found.