RE: [xml-dev] Basic XSD question

From
Michael Kay <>
To
'Robert Soesemann' <>,
Date
2004-12-10T16:49:24
ID
<>
Thread
RE: [xml-dev] Basic XSD question
> 
> 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/