I tried everything <xs:all>, <xs:choice>, and <xs:sequence>
None of them satisfactorily help my cause.
Does anyone know how you would confirm something like that.
<Menu>
<SubMenu>
<MenuItem .. />
<MenuItem .. />
<MenuItem .. />
</SubMenu>
<MenuItem .. >
<MenuItem .. >
</Menu>
Where, In the tag <Menu>
<SubMenu>and / or <MenuItem>may occur any number of times (0-n) in any order. But at least one of them must happen at least once.
Ignoring checks inside SubMenu tags.
Thank any help in this matter.
source
share