Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Hello world (sample) of schemas >Thread Next - Re: Hello world (sample) of schemas Re: Hello world (sample) of schemasTo: 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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
