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 String |
JsonConverter.convertToJson(Document dom,
Xml2JsonOptions... options)
Creates a new JSON string from the root of the passed
Document
. |
static StringBuilder |
JsonConverter.convertToJson(Element root,
StringBuilder buf,
Xml2JsonOptions... options)
Creates a new JSON string from the the passed
Element , and
appends that string to the passed buffer (the buffer is actually passed
into the JSON construction code). |
static String |
JsonConverter.convertToJson(Element root,
Xml2JsonOptions... options)
Creates a new JSON string from the the passed
Element . |
Modifier and Type | Method and Description |
---|---|
static Xml2JsonOptions |
Xml2JsonOptions.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Xml2JsonOptions[] |
Xml2JsonOptions.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
Xml2JsonConverter(Xml2JsonOptions... options) |