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
  • value Source object.
  • rootName Root element name.
  • exclude Optional list of top-level property names to skip.
Returns

DOM document containing the object public state.

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