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

Validate list (XML Schema)

From: -saNetta- <san_netta@yahoo.com>
Date: Tue, 23 Sep 2003 16:33:40 +1000 (EST)
Message-ID: <20030923063340.85791.qmail@web40805.mail.yahoo.com>
To: xmlschema-dev@w3.org

Dear,

I have problem in writing XML schema for the following
xml code

<list>Alan,Andrew,Santy<list>

I have tried to write it in the following way
<xsd:simpleType name="PatronsType">
    <xsd:list itemType="xsd:string" />
</xsd:simpleType>

the problem is "how to validate the value of list tag
to not be able to have repeating value
eg. <list>Alan,Andrew,Santy,Andrew<list>

note:the above xml, the Andrew is repeated.

Thank you,

Cheers,
San

http://search.yahoo.com.au - Yahoo! Search
- Looking for more? Try the new Yahoo! Search
Received on Tuesday, 23 September 2003 02:37:08 GMT

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