How can i define an boolean attribute that can be set "true" only in one element. Following snippet must be invalid.
<products>
<product featured="yes">Prod 1</product>
<product featured="yes">Prod 2</product>
</products>
You can't do that with XML Schemas.
You can define attributes on an element, but not limit them to one instance of the element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With