W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2002

integer and empty element

From: Hanna <lhnhanna@hotmail.com>
Date: Wed, 18 Dec 2002 06:52:51 -0700
Message-Id: <5.1.0.14.1.20021218065238.02d96e98@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
I am new to xml schema. I would like to ask how i can define a data type 
which is integer but can allow empty element.
e.g. <B>6</B> , <B/> are both allowed.
if B contains integer value, then schema validates it.
if B is an empty element, the schema will let it go.
Received on Wednesday, 18 December 2002 08:53:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT