List of utility methods to do XML Serializer Write
void | writeMapXml(Map val, String name, XmlSerializer out) Flatten a Map into an XmlSerializer. if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; Set s = val.entrySet(); Iterator i = s.iterator(); out.startTag(null, "map"); ... |
void | writeMapXml(Map val, String name, XmlSerializer out) Flatten a Map into an XmlSerializer. if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; Set s = val.entrySet(); Iterator i = s.iterator(); out.startTag(null, "map"); ... |
void | writeSetXml(Set val, String name, XmlSerializer out) write Set Xml if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; out.startTag(null, "set"); if (name != null) { out.attribute(null, "name", name); ... |
void | writeSetXml(Set val, String name, XmlSerializer out) write Set Xml if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; out.startTag(null, "set"); if (name != null) { out.attribute(null, "name", name); ... |
void | writeSetXml(Set val, String name, XmlSerializer out) write Set Xml if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; out.startTag(null, "set"); if (name != null) { out.attribute(null, "name", name); ... |
void | writeSimpleElement(XmlSerializer serializer, String namespace, String elementName, String elementText) Writes a simple element such as if (elementName == null) { throw new XmlPullParserException( "name for element can not be null"); serializer.startTag(namespace, elementName); if (elementText == null) { serializer.attribute(XSI_NS, "nil", "true"); } else { ... |
void | writeSimpleElement(XmlSerializer serializer, String namespace, String elementName, String elementText) Writes a simple element such as if (elementName == null) { throw new XmlPullParserException( "name for element can not be null"); serializer.startTag(namespace, elementName); if (elementText == null) { serializer.attribute(XSI_NS, "nil", "true"); } else { ... |
void | writeStringArrayXml(String[] val, String name, XmlSerializer out) Flatten a String[] into an XmlSerializer. if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; out.startTag(null, "string-array"); if (name != null) { out.attribute(null, "name", name); ... |
void | writeStringArrayXml(String[] val, String name, XmlSerializer out) Flatten a String[] into an XmlSerializer. if (val == null) { out.startTag(null, "null"); out.endTag(null, "null"); return; out.startTag(null, "string-array"); if (name != null) { out.attribute(null, "name", name); ... |
void | writeStringAttribute(XmlSerializer out, String name, String value) write String Attribute if (value != null) {
out.attribute(null, name, value);
|