ShawnMoore / XMLParsing

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

Root node key / value ignored on `flatten` #11

Open MaxHasADHD opened 6 years ago

MaxHasADHD commented 6 years ago

I'm getting back XML with just a <String>...</string> value, so the key / value of the root node is correct but flatten only takes the attributes and flattens the children, but doesn't add the key / value of the current node.