CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
793 stars 104 forks source link

Decoding attribute and element with same name but different values #250

Open azhabort opened 1 year ago

azhabort commented 1 year ago

Hello! @MaxDesiatov thanks for this great tool.

Is it possible to decode object with attribute and child element with same name but different values? For example xml:

<Shelf List="first">
    <List>
        <Book id="1"/>
        <Book id="2"/>
    </List>
</Shelf>
Joannis commented 1 year ago

Hey @azhabort you should be able to use an array for this.