XML2JSONTransformation

From GreenVulcano Wiki
Jump to: navigation, search

Description

XML2JSONTransformation element defines a XML to JSON Transformation

GreenVulcano® ESB configuration

The XML2JSONTransformation Element is used by Transformations.

The following table shows its attributes:

Attribute Type Description
type fixed This attribute must assume the value transformation.
class fixed This attribute must assume the value it.greenvulcano.gvesb.gvdte.transformers.json.XML2JSONTransformer
name required Transformation name. The attribute's value cannot be null.
validate optional The attribute's admitted values are:
  • true
  • false
validateDirection optional The attribute's admitted values are:
  • in
validationType optional The attribute's admitted values are:
  • xsd
  • dtd
InputXSLMapName optional Style-sheet to be used in transformation from the input XML to the XML(->JSON). The attribute's value cannot be null.
SchemaInput optional XSD Schema that describes the input XML.
SchemaOutput optional XSD Schema that describes the output XML.
DataSourceSet optional DataSourceSet name from which retrieves the transformation map and validation schema. The attribute's value cannot be null.
TransformerFactory optional The FQN of the TransformerFactory class to use. If not configured use the JVM default.
Attribute Type Description
ForceElementsArray optional A comma-separated list of element's local-name to be forced as JSONArray also if in single instance.
Attribute Type Description
ForceStringValue optional A comma-separated list of element's local-name to be forced as String values, ignoring automatic type conversion.

JSON2XMLTransformation might contain the following sub-elements: