Closed ThePredators closed 2 years ago
I managed to make it work, but find out a bug :)
when using option : xmlEncoder.keyEncodingStrategy = XMLEncoder.KeyEncodingStrategy.capitalized
the attribute is capitalized like an element.
<Coordinate Datum="wgs84">
<Lat>38.5</Lat>
<Lon>77.2</Lon>
</Coordinate>
when using option : xmlEncoder.keyEncodingStrategy = XMLEncoder.KeyEncodingStrategy.capitalized
the attribute is capitalized like an element.
Thanks for reporting. This is the intended behavior. "Keys" means both elements and attributes, depending on context.
Hello,
I tried to encode a structure that has a attribute but it seems it doesn't work. It encode elements but no attributes.
How can I make this work ?
when I call this :
The content of xmlStr is :
I don't understand why the attribute datum is not set !
Thanks for help.