Skip to main content

Quantela platform user manual

XML to JSON

Description

Convert an XML object to JSON format.

Input

String

Output

JSON

escapeMode

Select True if XML attributes have a prefix string to identify them in the JSON model.

attributePrefix

Indicate the prefix string to be used to identify XML attributes in the JSON model. The default is "_".

skipEmptyTextNodesForObj

Skip empty text tags for nodes with no children. Default is True.

stripWhiteSpaces

Strip white-space to trim text nodes. Default is True.

useDoubleQuotes

Use double quotes for XML formatting. Default is True.

keepCData

If this property is False and an XML element only has CData then it will be converted to text without the additional "_cdata" property. Default is False.

IsCollection

If True then the input parameter is a JSON collection, otherwise it is simply a string.

IteratorKey

If the input parameter is a JSON collection, then this parameter indicates the specific attributes in the collection that the function is to operate on.