Frends.XML.ConvertJsonToXml / 1.2.0
Summary
Converts JSON to XML under a root element you name, since JSON has no single root of its own, and can include the XML declaration.
Typical use — feeding JSON data into an XSLT, schema-validation or SOAP step
Input class for converting JSON string to XML string.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Json | String |
– |
{
'?xml': {
'@version': '1.0',
'@standalone': 'no'
},
'root': {
'person': [
{
'@id': '1',
'name': 'Alan',
'url': 'http://www.google.com'
}
]
}
}
|
Json string to be converted to XML. |
| XmlRootElementName | String |
– | root |
The name for the root XML element. |
| IncludeXmlDeclaration | Boolean |
True |
true |
Enables the Xml declaration to be included to the Xml string. Doesn't affect to the xml when XmlRootElementName is empty. Xml declaration needs to be in the json otherwise default xml declaration is used. |