XmlSerializationPolicy
Policies allow for customizing the behaviour of the xml serialization
Inheritors
Types
Class holding the name information for either an attribute or type
Properties
The default output kind used for objects (including Unit). By default this is as element. Note that objects by default do not have elements.
The default output kind used for (effective) primitives (inline values are elided). By default this is as attribute.
Serialize float/double data according to the requirements of XML, rather than the toFloat/Float.toString/toDouble/Double.toString function from the Kotlin standard library.
Functions
Determine the delimiters to use to separate attributes. When writing will always write the first element.
Determine namespace prefixes to make sure are set upon the tag.
Allows for recovering from unknown content. The implementation must either throw an exception or consume the content (parse it completely). It can allow recovery by returning a list of data that should be recovered (this can allow further parsing of the data or return final values).
Allow modifying the ordering of children.
Determines whether inline classes are merged with their content. Note that inline classes may still determine the tag name used for the data even if the actual contents come from the child content. The actual name used is ultimately determined by the policy.
Determine whether the key attribute should be collapsed into the value tag rather than the value being nested in a container for the element.
Determine the name to use for the map element (only used when a map entry is wrapped)
Determine the name of map keys for a given map type
Determine the name of the values for a given map type
Determine the delimiters to use to separate primitive/textual list elements when use inside an element. When writing will always write the first element.
