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: 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
