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

elements with the same name

From: Wendy Lam <bigangellover@yahoo.com>
Date: Fri, 17 Aug 2001 16:45:26 -0400 (EDT)
Message-ID: <20010817204511.48457.qmail@web14205.mail.yahoo.com>
To: xmlschema-dev@w3.org
Hi,

I've been trying to create a schema that can validate
the following xml.

<Address type="US">
  <Street>12345 main street</Street>
  <City>JoeTown</City>
  <Zip>2456</Zip>
</Address>
<Address type="China">
  <Street>12344 lo pai street</Street>
  <City>...</City>
  <Province>..</Province>
</Address>

There is one tag name <Address>, but based on its
attribute value of "type", the elements inside of
<Address> varies.  

Thanks!!

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
Received on Wednesday, 22 August 2001 05:26:59 GMT

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