klyn.io.xml.dom.XMLSerializer.documentFrom
method

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

Description

Converts a value to a DOM document.

Parameters

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

Returns

DOM document containing the value.

Example

    document = XMLSerializer.documentFrom(user, "User")