W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

How to validate?

From: Lau Chung Sing <singlau_lcs@yahoo.com>
Date: Thu, 13 Dec 2001 04:28:09 -0500 (EST)
Message-ID: <20011213092752.49942.qmail@web10707.mail.yahoo.com>
To: xmlschema-dev@w3.org

Dear XML Schema Gurus,

Below is an XML fragment:

<location>
 <tourist>
  <ID></ID>
  <PassPortNo></PassPortNo>
  <Nation></Nation>
 </tourist>
</location>

How can I do the following validations?
1.either ID or PassPortNo should be filled in
2.Nation should have value(not including space)
3.ID should have either 10 or 11 characters

Grateful if you can help!

Carter



---------------------------------
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctionsfor all of your holiday gifts!
Received on Wednesday, 19 December 2001 13:16:51 GMT

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