public interface IXmlManager
XML strings and objects.| Modifier and Type | Method and Description |
|---|---|
IJsonObject |
fromXml(String xml)
Deserializes a XML to an
IJsonObject. |
<T> T |
fromXml(String xml,
Class<T> clazz)
Deserializes a XML to the given Class.
|
<T> T |
fromXmlInputStream(InputStream inputStream,
Class<T> clazz)
Deserializes a XML inputstream to the given Type.
|
IJsonArray |
fromXmlToJsonArray(String xml)
Deserializes a XML to an
IJsonArray. |
<T> T |
fromXmlToType(String xml,
Type type)
Deserializes a XML to the given Type.
|
String |
toXml(Object obj)
Converts an object to XML.
|
String |
toXml(Object obj,
boolean pretty)
Converts an object to XML.
|
String toXml(Object obj)
IJsonObject, its elements
of type "IJsonArray" will have a "isArray='true'" attribute
added. This way, the XML can be deserialized back to a
IJsonObject correctly.String toXml(Object obj, boolean pretty)
pretty - If true, the generated XML will
be formatted.IJsonObject fromXml(String xml)
IJsonObject. This
will correctly manage the XML generated by
toXml(), arrays included.IJsonArray fromXmlToJsonArray(String xml)
IJsonArray. This
will correctly manage the XML generated by
toXml(), arrays included.<T> T fromXml(String xml, Class<T> clazz)
IJsonObject to get the
arrays to work out of the box!<T> T fromXmlToType(String xml, Type type)
IJsonObject to get the
arrays to work out of the box!<T> T fromXmlInputStream(InputStream inputStream, Class<T> clazz)
IJsonObject to get the
arrays to work out of the box!Copyright © 2016. All rights reserved.