xmlutil
xmlutil copied to clipboard
XmlSerialName is ignored with objects
Hello,
I have an object
// (The prefix is empty because it mustn't have any prefix even its parent prefix)
@XmlSerialName("A", "http://tempuri.org/", "")
@Serializable
object ARequest
And XmlSerialName is ignored
But if it is a class with no members (class ARequest with the same annotations) it is working.
kotlinx.serialization doesn't support annotations on objects yet, but it's coming soon.
I will leave this open until supported by the plugin. In the meantime you should be able to use an annotation at use site.