map xml element to xsd complexType based on attribute
- by Joshua Johnson
Assume there exists an XML instance document that looks like this:
<root>
<object type="foo">
<!-- ... -->
</object>
<object type="bar">
<!-- ... -->
</object>
</root>
My goal is to have a small (static) schema that verifies proper <element type="xxx" />…