klyn.io.xml.dom.XMLSerializer.documentFromObject
method
public static documentFromObject(value as Object, rootName as String = "object", exclude as List<String> = null) as XMLDocument:
Description

Converts an object's public properties to a DOM document.

Parameters
ParameterDescription
valueSource object.
rootNameRoot element name.
excludeOptional list of top-level property names to skip.
Returns

DOM document containing the object public state.

Example
document = XMLSerializer.documentFromObject(user, "User")