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"/>
	</xsd:restriction>
</xsd:simpleType>

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

Kind regards,
IsmaŽl
Received on Monday, 1 September 2003 10:48:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT