public class XMLSerializer:
Builds and serializes XML DOM trees in pure Klyn.
@example `klyn import klyn.io.xml.dom
xml = XMLSerializer.stringify({"answer": 42}, "data", prettyPrint=true, indent=2) print(xml)
| Modifier and Type | Member | Description |
|---|---|---|
| public static | documentFromdocumentFrom(value as Object, rootName as String = "object", exclude as List<String> = null) as XMLDocument: |
Converts a value to a DOM document. |
| public static | documentFromMap | Converts a map to a DOM document. |
| public static | documentFromObjectdocumentFromObject(value as Object, rootName as String = "object", exclude as List<String> = null) as XMLDocument: |
Converts an object's public properties to a DOM document. |
| public static | serialize | Serializes a DOM node to XML text. |
| public static | stringify | Converts a value to XML text. |
| public static | stringifyMap | Converts a map to XML text. |