I have a XML Schema from a XmlSchemaSetProvider and need a list of all possible XML Elements (names) that may be in the given type in the correct order.
The schema uses XML Schema extensions, complex types, sequences...
Is there some good way to accomplish this?
Cause: I have a custom XML serializer that depended on property order returned when reflecting the .NET type but that (documented as undefined) order behavior changed with MSBuild 14. Now i have to correct the order without putting around 1000 XmlElement.Order on all class properties. So the idea is to detect/correct the order from XSD information and use it to fix the XML.