klyn.io.xml.dom.XMLSerializer.documentFromMap
method

    public static documentFromMap(value as Map<String, Object>, rootName as String = "object", exclude as List<String> = null) as XMLDocument:

Description

Converts a map to a DOM document.

Parameters

Parameter | Description
--- | ---
`value` | Source map.
`rootName` | Root element name.
`exclude` | Optional list of top-level keys to skip.

Returns

DOM document containing the map.

Example

    document = XMLSerializer.documentFromMap(data, "data")