Android Utililty Methods XML Serializer Write

List of utility methods to do XML Serializer Write

Description

The list of methods to do XML Serializer Write are organized into topic(s).

Method

voidwriteUriAttribute(XmlSerializer out, String name, Uri value)
write Uri Attribute
if (value != null) {
    out.attribute(null, name, value.toString());
voidwriteValueXml(Object v, String name, XmlSerializer out)
Flatten an object's value into an XmlSerializer.
String typeStr;
if (v == null) {
    out.startTag(null, "null");
    if (name != null) {
        out.attribute(null, "name", name);
    out.endTag(null, "null");
    return;
...
voidwriteValueXml(Object v, String name, XmlSerializer out)
Flatten an object's value into an XmlSerializer.
String typeStr;
if (v == null) {
    out.startTag(null, "null");
    if (name != null) {
        out.attribute(null, "name", name);
    out.endTag(null, "null");
    return;
...
voidwriteValueXml(Object v, String name, XmlSerializer out)
Flatten an object's value into an XmlSerializer.
String typeStr;
if (v == null) {
    out.startTag(null, "null");
    if (name != null) {
        out.attribute(null, "name", name);
    out.endTag(null, "null");
    return;
...
voidwriteValueXml(Object v, String name, XmlSerializer out)
Flatten an object's value into an XmlSerializer.
String typeStr;
if (v == null) {
    out.startTag(null, "null");
    if (name != null) {
        out.attribute(null, "name", name);
    out.endTag(null, "null");
    return;
...
voidwriteValueXml(Object v, String name, XmlSerializer out)
Flatten an object's value into an XmlSerializer.
String typeStr;
if (v == null) {
    out.startTag(null, "null");
    if (name != null) {
        out.attribute(null, "name", name);
    out.endTag(null, "null");
    return;
...
voidwriteListXml(List val, OutputStream out)
Flatten a List into an output stream as XML.
XmlSerializer serializer = Xml.newSerializer();
serializer.setOutput(out, "utf-8");
serializer.startDocument(null, true);
serializer.setFeature(
        "http://xmlpull.org/v1/doc/features.html#indent-output",
        true);
writeListXml(val, null, serializer);
serializer.endDocument();
...
voidwriteListXml(List val, OutputStream out)
Flatten a List into an output stream as XML.
XmlSerializer serializer = Xml.newSerializer();
serializer.setOutput(out, "utf-8");
serializer.startDocument(null, true);
serializer.setFeature(
        "http://xmlpull.org/v1/doc/features.html#indent-output",
        true);
writeListXml(val, null, serializer);
serializer.endDocument();
...
voidwriteListXml(List val, OutputStream out)
Flatten a List into an output stream as XML.
XmlSerializer serializer = Xml.newSerializer();
serializer.setOutput(out, "utf-8");
serializer.startDocument(null, true);
serializer.setFeature(
        "http://xmlpull.org/v1/doc/features.html#indent-output",
        true);
writeListXml(val, null, serializer);
serializer.endDocument();
...
voidwriteListXml(List val, OutputStream out)
Flatten a List into an output stream as XML.
XmlSerializer serializer = Xml.newSerializer();
serializer.setOutput(out, "utf-8");
serializer.startDocument(null, true);
serializer.setFeature(
        "http://xmlpull.org/v1/doc/features.html#indent-output",
        true);
writeListXml(val, null, serializer);
serializer.endDocument();
...