Vampire
02/11/2024, 5:31 PMMarkupBuilder
in Groovy?
Kotlin version is 1.7.10, as it is for a Gradle 7.6 supporting plugin.hfhbd
02/11/2024, 6:12 PMVampire
02/11/2024, 6:18 PMVampire
02/11/2024, 7:14 PMXmlChildrenName
which forces to give the child name.
Besides that it is a strange side-effect, that it causes a wrapping tag to be used.hfhbd
02/11/2024, 7:19 PMVampire
02/11/2024, 7:22 PM<foo>
<bar>
<baz bam="bam1"/>
<baz bam="bam2"/>
</bar
</foo>
Foo
has a list of Baz
.
I specify @SerialName("baz")
on Baz
.
But I do not see how to make it wrapped in bar
without using
@XmlChildrenName
where I have to specify baz
again.hfhbd
02/11/2024, 7:27 PMBaz
.Vampire
02/11/2024, 9:49 PMVampire
02/11/2024, 11:14 PMxmlns
attribute and a prefix for the intended namespace. 😕Vampire
02/11/2024, 11:17 PMXmlSerialName
but having a property called xmlns
hackyyyVampire
02/12/2024, 2:04 AMencodeToString
, but not with encodeToWriter
. 😞Vampire
02/12/2024, 2:35 AMXmlSerialName
😒hfhbd
02/12/2024, 7:54 AMVampire
02/12/2024, 8:04 AMhfhbd
02/12/2024, 8:06 AMSerialName
and XmlSerialName
and choose the latter, otherwise the namespaces were wrong. Anyway, we use it only for automatic soap api generating.