serialize

fun XmlSerializable.serialize(writer: <Error class: unknown class>)

Serialize the object to XML