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: <5.1.0.14.1.20030108062954.029aac70@localhost>
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:
<A>
<B D="abc"> b_value</B>
</A>

for B element, i use  complexType :
<complexType name="Btype">
<attribute name="D" type="string"/>
</complexType>
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 GMT

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