Restricting empty elements in xsd
- by Chris Welsh
Is there a way to prevent empty elements of the form <myElement/> being used in your xml? In other words, can you specify in your xsd that <myElement/> is invalid?
Using nillable="false" doesn't work, nor does minOccurs="1" - both of those allow
<myElement/>.