Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Hello world (sample) of schemas

From: usenet@--------------.---
To: NULL
Date: 2/27/2008 6:34:00 AM
On 27 Feb, 04:49, "Sam Hobbs"
<sam...@social.rr.com_change_social_to_socal> wrote:
> XML Schema
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> <?xml version =3D "1.0"?>
> <schema>
> =A0 <element name =3D "HelloWho" />
> </schema>
> ...
> Yes, I removed the explicit namespaces. Is that schema and document valid?=

> If the schema is not valid for that document, what would be valid for that=

> document?

You do need the schema tag to be associated with the XML schema
namespace otherwise processors won't accept it.

Thus the minimum becomes someting like:

<xs:schema xmlns:xs =3D "http://www.w3.org/2001/XMLSchema">
  <xs:element name =3D "HelloWho" type=3D"xs:string"/>
</xs:schema>

These pages might help you to understand namespaces better:

http://atmanes.blogspot.com/2006/07/short-explanation-of-xml-namespaces.html=

http://www.jclark.com/xml/xmlns.htm

They're not really that difficult!

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