pdvrieze / xmlutil

XML Serialization library for Kotlin
https://pdvrieze.github.io/xmlutil/
Apache License 2.0
377 stars 30 forks source link

How to work with elements that have the same name and different attributes #169

Closed GpixelProg closed 1 year ago

GpixelProg commented 1 year ago

Hello Team,

I have an XML file of this type:

<obj id="1">
     <name/>
     <color>white</color>
     <anim>sample0</anim>
     <user id="1"/>
     <user id="2"/>
     <hold_up_state/>
     <main_action id="1"/>
     <main_action id="2"/>
</obj>

How can I describe a Data class to work with these elements? - user id="1", ' user id="2"

Regards, Maksym