Open EricSites opened 4 years ago
For Codable, one property is with one key. In you sample, coda
in attribute and element shares the same key. Two properties are with one key. That is a conflict. I don't think there is a way for this other than solving the conflict first.
For Codable, one property is with one key. In you sample,
coda
in attribute and element shares the same key. Two properties are with one key. That is a conflict. I don't think there is a way for this other than solving the conflict first.
This is a valid XML schema that I can't change. I need to parse it.
For Codable, one property is with one key. In you sample,
coda
in attribute and element shares the same key. Two properties are with one key. That is a conflict. I don't think there is a way for this other than solving the conflict first.This is a valid XML schema that I can't change. I need to parse it.
You don't need to change the xml file. Just add another layer.
How do I handle encoding and decoding an element and attribute with the same name but different types?
Example XML
Here is what I have done so far, but doesn't work: