Re: help with xsd

Apollo,

Our XSD introduction at:

http://www.codalogic.com/lmx/xsd-overview.html

may help if you are just beginning.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com 
for more info

----- Original Message From: "apollo"

> 
> Hi
> 
> I am a new-user of xsd, and at the moment I got confusing with some stuff
> Could someone please correct me if we can declare something like:
> 
> <xsd:sequence>
>   <xsd:element name="var_name" type="xsd:string"/>
> 
> <!-- this means optional. which is similar to  
> <xsd:element name="var_name" type="xsd:string" use="optional"/> 
> --> 
> 
>   <xsd:element name="var_value" type="xsd:integer" use="required"/>
> </xsd:sequence>
> 
> In some stuff, it is mentioned that  'use="optional/required" ' can be 
> added to attribute only. but elements are instances of attributes . Is 
> this correct?
> 
> Thanks for reply
> 
> 
> 
>

Received on Friday, 15 January 2010 12:13:24 UTC