XmlValue

annotation class XmlValue(val value: Boolean = true)(source)

Force a property to be content of the tag (for the object containing the property). This is both for text content (polymorphic including a primitive), but if the type is a list of tag-like types (Node, Element, CompactFragment) it will also allow mixed content of tags not supported by the base type. Strings will be serialized/deserialized as (tag soup) string content without wrapper.

Properties

Link copied to clipboard
val value: Boolean = true

true to indicate the value. false and absence are equivalent.