i am working on an xsd-specification (for a simple game 😉 ) which has that specification:
I have an Elem players with an attribute number, which indicates the number of the players(a num between 1 and 4). As childelems, it contains elems of zero to four screenname elements. These elements have player screenname text content and attribute, which indicates the end of the game number (a number between 1 and 4).
My big problems are the screenname and the Intervall in a typ in xsd?
So how to do that?
greetings and thx in advance
This is what I think you’re describing:
This would be an automatically generated XSD:
This would be one with additional constraints, as described:
a num between 1 and 4andzero to four screenname elements. By looking at before/after, you should understand which one is which.