Skip to main content

createFromXML (Function)

Function returns the map created by pairing the keys with their corresponding values,given as an XML string.

Syntax

<OBJECT> map:createFromXML(<STRING> xml.string)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
xml.stringThe XML string, which is used to create the map.STRINGNoYes

Example 1

map:createFromXML("<stock>
<symbol>IBM</symbol>
<price>200</price>
<volume>100</volume>
</stock>")

This returns a map with the keys symbol, price, volume, and with their values IBM, 200 and 100 respectively.