public toXml(exclude as List<String> = null, prettyPrint as Boolean = true, indent as Int = 4) as String:
Returns the object as XML text.
The XML tree is built through the pure Klyn DOM implementation in klyn.io.xml.dom, then serialized by XMLSerializer.
XML representation of the object. klyn import klyn.math r = Rational(3, 4) print(r.toXml(prettyPrint=true, indent=2))