org.basex.query.util.json
Class JsonMLConverter

java.lang.Object
  extended by org.basex.query.util.json.JsonConverter
      extended by org.basex.query.util.JsonXMLConverter
          extended by org.basex.query.util.json.JsonMLConverter

public class JsonMLConverter
extends JsonXMLConverter

This class converts a JsonML document to XML. The specified JSON input is first transformed into a tree representation and then converted to an XML document.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen, Leo Woerteler

Field Summary
 
Fields inherited from class org.basex.query.util.json.JsonConverter
COMPACT, info, JSONML, MAPS
 
Constructor Summary
JsonMLConverter(InputInfo ii)
          Constructor.
 
Method Summary
 ANode convert(java.lang.String in)
          Converts the given JSON string into an XQuery value.
 
Methods inherited from class org.basex.query.util.json.JsonConverter
newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonMLConverter

public JsonMLConverter(InputInfo ii)
Constructor.

Parameters:
ii - input info
Method Detail

convert

public ANode convert(java.lang.String in)
              throws QueryException
Description copied from class: JsonConverter
Converts the given JSON string into an XQuery value.

Specified by:
convert in class JsonXMLConverter
Parameters:
in - the JSON string
Returns:
the result
Throws:
QueryException - parse exception