OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Basic XSD question

[ Lists Home | Date Index | Thread Index ]

> 
> 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/





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS