public static documentFrom(value as Object, rootName as String = "object", exclude as List<String> = null) as XMLDocument:
Converts a value to a DOM document.
DOM document containing the value.
document = XMLSerializer.documentFrom(user, "User")