I'm working on an XSD file and when validating an XML file with it I want to restrict empty elements. Eg.,
<myElement>this is not empty</myElement>
would pass validation, however
<myElement/>
or <myElement></myElement>
would not pass validation.
Thanks for any help you may offer!
ps. I accidentally posted this at https://stackoverflow.com/questions/4126546/prevent-empty-elements-in-xml-via-xsd under an unregistered account. I apologize for any inconveniences.
UPDATE: The element must be able to not exist in the XML at all, so I can not use minOccurs="1".