XmlElement

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

Force a property that could be an attribute to be an element. Note that default behaviour requires this annotation to be absent.

Properties

Link copied to clipboard
val value: Boolean = true

true to indicate serialization as tag, false to indicate serialization as attribute. Note that not all values can be serialized as attribute.