W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

Non empty content model

From: Cams Ismael <Ismael.Cams@siemens.com>
Date: Mon, 1 Sep 2003 16:47:58 +0200
Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F1957ABDAC@hrtades7.atea.be>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hello all,

how can i define that an element may not be empty.
Now I use:

<xsd:simpleType name="nonEmptyString">
	<xsd:restriction base="xsd:string">
		<xsd:minLength value="1"/>

Is there an attribute or a general rule to indicate the content of an
element may not be empty ? 

Kind regards,
Received on Monday, 1 September 2003 10:48:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC