public static documentFrom(value as Object, rootName as String = "object", exclude as List<String> = null) as XMLDocument:
Converts a value to a DOM document.
| Parameter | Description |
|---|---|
value | Source value. |
rootName | Root element name. |
exclude | Optional list of top-level members to skip. |
DOM document containing the value.
document = XMLSerializer.documentFrom(user, "User")