help with xsd

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 08:58:01 UTC