Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Hello world (sample) of schemas

From: usenet@--------------.---
To: NULL
Date: 3/3/2008 3:27:00 AM
On 27 Feb, 14:33, use...@tech-know-ware.com wrote:
> Thus the minimum becomes someting like:
>
> <xs:schema xmlns:xs =3D "http://www.w3.org/2001/XMLSchema">
> =A0 <xs:element name =3D "HelloWho" type=3D"xs:string"/>
> </xs:schema>

Taking a slightly different tack, I think if you make it a goal to
understand that the following schema:

<xs:schema xmlns:xs =3D "http://www.w3.org/2001/XMLSchema">
  <xs:element name=3D"Say">
    <xs:complexType>
        <xs:sequence>
            <xs:element name=3D"What" type=3D"xs:string"/>
        </xs:sequence>
        <xs:attribute name=3D"HowLoud" type=3D"xs:int"/>
    </xs:complexType>
  </xs:element>
</xs:schema>

yields XML instances of the form:

<Say HowLoad=3D'11'>
    <What>Hello World!</What>
</Say>

then you're a long why towards understanding XML schema.  As such,
while it's not the simplest schema (and not necessarily the first that
an instructor would present), IMO it's one of the simplest that yields
insightful information.

HTH,

Pete Cordell
Codalogic
For XML C++ data binding visit http://www.codalogic.com/lmx/


transparent
Print
Mail
Like It
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