[Home] [By Thread] [By Date] [Recent Entries]


> 
> How can I define in XMLSchema that an element should provide a text
> value? When I validate the following XML with the XSD I get no error,
> because the empty string seems to be a valid string as well.


You can define a simple type derived from xs:string, with a minLength facet
set to 1.

Michael Kay
http://www.saxonica.com/


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member