ShawnMoore / XMLParsing

XMLEncoder & XMLDecoder using the codable protocol in Swift 4.2
MIT License
332 stars 100 forks source link

_XMLElement `flatten()` overwrites values #10

Closed MaxHasADHD closed 6 years ago

MaxHasADHD commented 6 years ago

I'm trying to parse a XML feed which provides a HTML and a String version for the same key. flatten() is overwriting the existing value, instead of appending it into an array or keeping the first value (although, someone else might want the last value), it should be set to an array.