W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2010

Re: help with xsd

From: Pete Cordell <petexmldev@codalogic.com>
Date: Fri, 15 Jan 2010 12:12:36 -0000
Message-ID: <0B993C416BE34BB889003ECC96B9B008@Codalogic>
To: "apollo" <apollo135@gmail.com>, <xmlschema-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:16 GMT