Package | Description |
---|---|
net.sf.practicalxml.converter |
This package contains classes to convert between XML and a variety of
other formats.
|
net.sf.practicalxml.converter.json |
This package contains classes to convert JSON (JavaScript Object Notation)
strings (as defined json.org ) to and
from an XML DOM.
|
Modifier and Type | Method and Description |
---|---|
static void |
JsonConverter.convertToXml(String json,
Element parent,
Json2XmlOptions... options)
Converts the passed JSON string to XML, appended as children of the
passed element.
|
static Document |
JsonConverter.convertToXml(String json,
String rootName,
Json2XmlOptions... options)
Creates a new DOM document from the passed bean, without namespace.
|
static Document |
JsonConverter.convertToXml(String json,
String nsUri,
String rootName,
Json2XmlOptions... options)
Creates a new DOM document from the passed JSON string, in which all
elements are members of the specified namespace and will inherit the
root's prefix (if any).
|
Modifier and Type | Method and Description |
---|---|
static Json2XmlOptions |
Json2XmlOptions.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Json2XmlOptions[] |
Json2XmlOptions.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Json2XmlConverter(String src,
Json2XmlOptions... options) |