Forum Discussion
JSC
Nimbostratus
Jul 04, 2017ASM XSD validation and `choice` element
Hi,
we have an issue with XSD validation. choice element doesn't work like expected by the W3C specification (https://www.w3schools.com/xml/el_choice.asp😞
Ex:
...
JSC
Nimbostratus
Jul 04, 2017You are right about minOccurs and maxOccurs:
*maxOccurs: Optional. Specifies the maximum number of times the choice element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1
minOccurs: Optional. Specifies the minimum number of times the choice element can occur in the parent the element. The value can be any number >= 0. Default value is 1*
However, the choice element doesn't work better if no attributes are specified:
==> same result as with attribute minOccurs="1"Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects