This adapter converts a YAML document into an XML document and vice versa.
Properties
|
|
Defines the operation executed by the adapter Possible values:
|
Parameters
|
|
Main adapter class (do not change!) Possible values:
|
|
|
Controls whether numeric types and booleans are read and normalized by the adapter ( Possible values:
|
Status values
|
|
The conversion was successful and the output is generated |
|
|
An error occurred during the conversion and no output is generated |
Input
Depending on the selected operations, the adapter expects the following input structure:
-
Convert YAML to XML:example: element1: - value1 - value2 - childValue1: 1 childValue2: 2 element2: value3
-
Convert XML to YAML:XML<Object> <Object name="example"> <Array name="element1"> <Value>value1</Value> <Value>value2</Value> <Object> <Value name="childValue1">1</Value> <Value name="childValue2">2</Value> </Object> </Array> <Value name="element2">value3</Value> </Object> </Object>
Output
Depending on the selected operations, the adapter outputs the following structure:
-
Convert YAML to XML:XML<Object> <Array name="element1"> <Value>value1</Value> <Value>value2</Value> <Object> <Value name="childValue1">1</Value> <Value name="childValue2">2</Value> </Object> </Array> <Value name="element2">value3</Value> </Object>
-
Convert XML to YAML:element1: - value1 - value2 - {childValue1: 1, childValue2: 2} element2: value3