LiveUI / XMLCoding

XMLEncoder & XMLDecoder using the Codable protocol in Swift 4.2
MIT License
10 stars 8 forks source link

Attribute support #16

Open danipralea opened 5 years ago

danipralea commented 5 years ago

Is there going to be an attributes support?

I currently cannot parse this:

<Body>
    <Subject>Reference rates</Subject>
    <OrigCurrency>RON</OrigCurrency>
    <Cube date="2019-08-07">
        <Rate currency="AED">1.1518</Rate>
        <Rate currency="AUD">2.8489</Rate>
        <Rate currency="BGN">2.4188</Rate>
        <Rate currency="BRL">1.0683</Rate>
    </Cube>
</Body>

I get [DecodingError.keyNotFound: Value required for key 'Body.Cube.Index 0.currency'.]