![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Newbie: Question about XSD [Thread Next] Re: Newbie: Question about XSDTo: "Michael Kay" <mike@--------.--->, "'Mathieu Malaterre'" <mathieu.malaterre@-----.--->, <xmlschema-dev@--.---> Date: 7/14/2008 10:57:00 AM
----- Original Message From: "Michael Kay"
To: "'Mathieu Malaterre'"
>> B.
>> I have to manipulate entry which value can be multiple, how
>> would do that ?
>> 1. As attribute:
>> <entry>1,2,3</entry>
>>
>> 2. As element:
>> <entry>
>> <value>1</value>
>> <value>2</value>
>> <value>3</value>
>> </entry>
>
> (2) will be easier to validate and to process.
A variation on this might be to use XSD's xs:list construct. XML schema
lists are always white space separated (you can't choose the separator), so
your list could look like:
<entry>1 2 3</entry>
HTH,
Pete Cordell
Codalogic
For XML C++ data binding visit http://www.codalogic.com/lmx/
From mrglavas@c... Mon Jul 14 17:50:31 2008
Received: from maggie.w3.or | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
