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


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


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

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,


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC