I am trying to represent some XML in an XSD schema, but having troubles.
I need to make a schema that allows for, something which was inspired from ANT, and looks like this;
Code: Select all
<equals property="Department" value="Finance"/>
<equals property="Size" value="1"/>
<equals property="User" value="John"/>
<equals property="User" value="Admin"/>
There must not be any order restrictions.
That is, I think the xsd:all element almost suits the occasion, but not the cardinality requirements.
The 'when' tag is easier. It can take either 'and, equals, or, not' elements (that is the easy part, simply use an xsd:choice element.
Can anyone show me how I would define a schema which allows for the above XML?