I'm creating an XML document covering one of the groups in the Champoins League, and using a Schema to make sure it's valid and what not.
It's almost done, but I've hit a snag. I have a complex element, called goals, that contains another element, called scorer. It looks like this:
My problem is that a game may finish 0 - 0, resulting in no goals, meaning that the scorer element won't be needed. Is there anyway in the Schema (or any other way) to take this into consideration?
Cheers.
It's almost done, but I've hit a snag. I have a complex element, called goals, that contains another element, called scorer. It looks like this:
Code:
<goals>
<scrorer number="1" time="62mins" team="Manchester United">Wayne Rooney</scrorer>
</goals>
My problem is that a game may finish 0 - 0, resulting in no goals, meaning that the scorer element won't be needed. Is there anyway in the Schema (or any other way) to take this into consideration?
Cheers.