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