# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Fields | Methods | Inherited Methods

# Xml

`public class Xml`
`extends Object` ``

java.lang.Object
↳ | android.util.Xml

XML utility methods.

## Summary

### Nested classes
`enum` | `Xml.Encoding` Supported character encodings.

### Fields
`public static String` | `FEATURE_RELAXED` `XmlPullParser` "relaxed" feature name.

### Public methods
`static AttributeSet` | `asAttributeSet(XmlPullParser parser)` Return an AttributeSet interface for use with the given XmlPullParser.
`static Xml.Encoding` | `findEncodingByName(String encodingName)` Finds an encoding by name.
`static XmlPullParser` | `newPullParser()` Returns a new pull parser with namespace support.
`static XmlSerializer` | `newSerializer()` Creates a new xml serializer.
`static void` | `parse(String xml, ContentHandler contentHandler)` Parses the given xml string and fires events on the given SAX handler.
`static void` | `parse(InputStream in, Xml.Encoding encoding, ContentHandler contentHandler)` Parses xml from the given input stream and fires events on the given SAX handler.
`static void` | `parse(Reader in, ContentHandler contentHandler)` Parses xml from the given reader and fires events on the given SAX handler.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Fields

### FEATURE_RELAXED

    public static String FEATURE_RELAXED

`XmlPullParser` "relaxed" feature name.

See also:

- specification

## Public methods

### asAttributeSet

    public static AttributeSet asAttributeSet (XmlPullParser parser)

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.

Parameters
`parser` | `XmlPullParser`: The existing parser for which you would like an AttributeSet.

Returns
`AttributeSet` | An AttributeSet you can use to retrieve the attribute values at each of the tags as the parser moves through its XML document.

See also:

- `AttributeSet`

### findEncodingByName

    public static Xml.Encoding findEncodingByName (String encodingName)

Finds an encoding by name. Returns UTF-8 if you pass `null`.

Parameters
`encodingName` | `String`

Returns
`Xml.Encoding` |

Throws
`UnsupportedEncodingException` |

### newPullParser

    public static XmlPullParser newPullParser ()

Returns a new pull parser with namespace support.

Returns
`XmlPullParser` |

### newSerializer

    public static XmlSerializer newSerializer ()

Creates a new xml serializer.

Returns
`XmlSerializer` |

### parse

    public static void parse (String xml,
                    ContentHandler contentHandler)

Parses the given xml string and fires events on the given SAX handler.

Parameters
`xml` | `String`
`contentHandler` | `ContentHandler`

Throws
`SAXException` |

### parse

    public static void parse (InputStream in,
                    Xml.Encoding encoding,
                    ContentHandler contentHandler)

Parses xml from the given input stream and fires events on the given SAX handler.

Parameters
`in` | `InputStream`
`encoding` | `Xml.Encoding`
`contentHandler` | `ContentHandler`

Throws
`IOException` |
`SAXException` |

### parse

    public static void parse (Reader in,
                    ContentHandler contentHandler)

Parses xml from the given reader and fires events on the given SAX handler.

Parameters
`in` | `Reader`
`contentHandler` | `ContentHandler`

Throws
`IOException` |
`SAXException` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*