Re: Newbie: Question about XSD

----- 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/

Received on Monday, 14 July 2008 08:58:19 UTC