Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Newbie: Question about XSD

From: "Pete Cordell" <petexmldev@---------.--->
To: "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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent