An Azure service that automates the access and use of data across clouds without writing code.
@junyan2000 While there isn't a way to pass a schema to conform to, the xml function makes the conversions using the conversion rules followed by JSON.NET.
So, if you were to require an XML Payload like this
<?xml version='1.0' standalone='no'?>
<root>
<person id='1'>
<name>Alan</name>
<url>http://www.google.com</url>
</person>
<person id='2'>
<name>Louis</name>
<url>http://www.yahoo.com</url>
</person>
</root>
You could require to pass in JSON in the following format
{
"?xml": {
"@version": "1.0",
"@standalone": "no"
},
"root": {
"person": [
{
"@id": "1",
"name": "Alan",
"url": "http://www.google.com"
},
{
"@id": "2",
"name": "Louis",
"url": "http://www.yahoo.com"
}
]
}
}
Another option would be to leverage Liquid Templates to convert from JSON to XML.