Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - [Newbie] XSD Validation for xml [Thread Next] Re: [Newbie] XSD Validation for xmlTo: NULL Date: 10/10/2009 12:51:00 PM apolloj wrote: > <xsd:schema xmlns="" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace=""> > > <xsd:element name="description" type="xsd:string"/> > > <xsd:element name="services-test" type="xsd:string"/> Here you are defining the element services-test to have the type xsd:string. > <services-test> > <mat name="MAN"> > <description>mat</description> yet here you give the element services-test child elements. If the type is xsd:string then the element is not allowed any child elements, it can only have text contents. You probably want to give the services-test element one of the complex types you have defined in your schema e.g. <xsd:element name="services-test" type="services-test"/> as the complex type named services-test is defined in your schema. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
