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
ParameterDescription
valueSource map.
rootNameRoot element name.
excludeOptional list of top-level keys to skip.
Returns

DOM document containing the map.

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