public static stringify(value as Object, rootName as String = "object", exclude as List<String> = null, prettyPrint as Boolean = true, indent as Int = 4) as String:
Converts a value to XML text.
| Parameter | Description |
|---|---|
value | Source value. |
rootName | Root element name. |
exclude | Optional list of top-level members to skip. |
prettyPrint | Enables multi-line output. |
indent | Number of spaces per indentation level. |
XML representation of the value.
xml = XMLSerializer.stringify(user, "User", ["password"], true, 4)