I have tried all the xs:all, xs:choice, and xs:sequence.
Does anybody know how would you validate something like this.
<Menu> <SubMenu> <MenuItem .. /> <MenuItem .. /> <MenuItem .. /> </SubMenu> <MenuItem .. /> <MenuItem .. /> </Menu>
Where, Under the tags Submenu, MenuItem can occur any number of times (0.. n) But atleast one of them must occur atleast once.
Ignoring validations inside SubMenu tags.
Would appreciate any help in this matter.