toXml

toXml

Overview

The toXml function takes a JSON/MAP formatted text as an argument, and returns it as an XML.

Return Type

  • TEXT

Syntax

<text>.toXml();

where,

ParameterData typeDescription
<variable>TEXTVariable which will contain the converted XML.
<text>TEXTThe JSON formatted text which needs to be converted to XML.

Examples

 jsonText="{Name:'Lia Shelton', OrderNo:[343,443,577]}";    
 info jsonText.toXML(); /* returns the following XML
 <root>
 <OrderNo>343</OrderNo>
 <OrderNo>443</OrderNo>
 <OrderNo>577</OrderNo>
 <Name>Lia Shelton</Name>
 </root>
 */

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com