| java.lang.Object | |
| ↳ | android.util.Xml |
XML utility methods.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Xml.Encoding | Supported character encodings. | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FEATURE_RELAXED | XmlPullParser "relaxed" feature name. |
||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return an AttributeSet interface for use with the given XmlPullParser.
| |||||||||||
Finds an encoding by name.
| |||||||||||
Creates a new pull parser with namespace support.
| |||||||||||
Creates a new xml serializer.
| |||||||||||
Parses the given xml string and fires events on the given SAX handler.
| |||||||||||
Parses xml from the given reader and fires events on the given SAX
handler.
| |||||||||||
Parses xml from the given input stream and fires events on the given SAX
handler.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
XmlPullParser "relaxed" feature name.
Return an AttributeSet interface for use with the given XmlPullParser. If the given parser itself implements AttributeSet, that implementation is simply returned. Otherwise a wrapper class is instantiated on top of the XmlPullParser, as a proxy for retrieving its attributes, and returned to you.
| parser | The existing parser for which you would like an AttributeSet. |
|---|
Finds an encoding by name. Returns UTF-8 if you pass null.
| UnsupportedEncodingException |
|---|
Creates a new pull parser with namespace support.
Note: This is actually slower than the SAX parser, and it's not fully implemented. If you need a fast, mostly implemented pull parser, use this. If you need a complete implementation, use KXML.
Parses the given xml string and fires events on the given SAX handler.
| SAXException |
|---|
Parses xml from the given reader and fires events on the given SAX handler.
| IOException | |
|---|---|
| SAXException |
Parses xml from the given input stream and fires events on the given SAX handler.
| IOException | |
|---|---|
| SAXException |