klyn.io.xml.dom.XMLSerializer.stringifyMap
method

    public static stringifyMap(value as Map<String, Object>, rootName as String = "object", exclude as List<String> = null, prettyPrint as Boolean = true, indent as Int = 4) as String:

Description

Converts a map to XML text.

Parameters

Parameter | Description
--- | ---
`value` | Source map.
`rootName` | Root element name.
`exclude` | Optional list of top-level keys to skip.
`prettyPrint` | Enables multi-line output.
`indent` | Number of spaces per indentation level.

Returns

XML representation of the map.

Example

    xml = XMLSerializer.stringifyMap({"name": "Klyn"} as Map<String, Object>, "data")