Today I got updated XML content from the 3rd-party backend and had to change our XmlSerializer-based parsing code just to comply with new fields. Unfortunately, I figured out that there was introduced a collection of similar tags but with weird behavior:
<old-root>
...
<contacts>
<John>Feel happy</John>
<Mary>Will be away for 2 hours, phone me</Mary>
<Bob>Do not disturb. I mean it!</Bob>
...and so on...
</contacts>
</root>
So far we had a parser class for "old-root" based on [XmlElement] mappings but I didn't figure out yet how to manage a collection of that similar name-value pairs via XML annotations (something like [XmlArray]/[XmlArrayItem] usually does). I can get a value via [XmlText] annotation but how to annotate that any-tag? "Star" pattern has no effect for ElementName.
P.S. I'm on UWP subset of .NET framework.