I created an .xsd schema to deserialize an XML stream (see below).
The deserialzation works perfectly right now.
My issue is, I would like to use the template to deserialize other objects in addition to the CustomModule1 element. The schemas are exactly the same, only the element name would change.
Is there a way to use a wildcard for the name of CustomModule1 so that it would accept any name there (e.g. CustomModule2, CustomModule3...)?
I looked at using xs:any, but I could not figure out how to make that work in my schema.
XML Schema wildcard for element name?
in Schema
Posted