XML Schema (XSD) - How to specify parent element to contain at least one child element?

Posted by joedotnot on Stack Overflow See other posts from Stack Overflow or by joedotnot
Published on 2010-03-22T07:43:32Z Indexed on 2010/03/22 7:51 UTC
Read the original article Hit count: 297

Filed under:
|
|

I have an XML schema (XSD) that defines an element as mandatory (call it the parent); this parent has, lets say, five child elements, which can all be optional, BUT AT LEAST ONE child element must occur.

How can i specify this in the xsd?

© Stack Overflow or respective owner

Related posts about xsd

Related posts about Xml