W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

element with attribute and string value

From: Hanna <lhnhanna@hotmail.com>
Date: Wed, 08 Jan 2003 06:29:57 -0700
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
i would like to ask the syntax of xml schema for the following case:
<B D="abc"> b_value</B>

for B element, i use  complexType :
<complexType name="Btype">
<attribute name="D" type="string"/>
however, Element 'B' must have no character or element information item 
[children], because the types content type is empty.

How can I solve it? Please help. Thanks a lot.
Received on Wednesday, 8 January 2003 08:31:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC