Re: xsd:group, minOccurs and xsd:choice

Hi Nick,

> I'm trying to create a group with a choice of a number of elements.
> I want the behaviour that at least one of the choice must exist, but
> can't find a way in Schema to enforce this.

Your schema is correct, as far as I can tell, and MSXML4 correctly
states that both:

> <change>
>   <do>
>    </do>
> </change>

and:

> <change>
>   <do>
>     <boguselement/>
>   </do>
>  </change>

are errors. I suspect that whatever validator you're using is buggy.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Wednesday, 5 February 2003 10:09:07 UTC