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
ParameterDescription
valueSource map.
rootNameRoot element name.
excludeOptional list of top-level keys to skip.
prettyPrintEnables multi-line output.
indentNumber of spaces per indentation level.
Returns

XML representation of the map.

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