Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XML Schema validation [Thread Next] Re: XML Schema validationTo: NULL Date: 9/10/2008 7:17:00 AM On 8 Sep, 10:46, Piotre Ugrumov <afmul...@gmail.com> wrote: > Hi, > I have written this xml schema: > > ... cut ... > > When I try to validate the document I receive these errors: > > Validation =A0 =A0 =A07, 43 =A0 src-resolve: Cannot resolve the name 'XMF= LOW' to > a(n) 'type definition' component. There's a typo there. In: <xs:element name=3D"XMLFLOW" type=3D"XMFLOW"/> <xs:complexType name=3D"XMLFLOW"> type=3D"XMFLOW" should go to type=3D"XMLFLOW". > Validation =A0 =A0 =A019, 41 =A0s4s-elt-invalid-content.1: The content of > 'PRODUCT' is invalid. Element 'element' is invalid, misplaced, or > occurs too often. The syntax for the complexTypes is wrong. It should be something like: <xs:complexType name=3D"PRODUCT"> <xs:sequence> <!-- This is added --> <xs:element name=3D"INFO" type=3D"INFO"/> ... </xs:sequence> </xs:complexType> HTH, Pete Cordell Codalogic Ltd Interface XML to C++ the easy way using XML C++ data binding to convert XSD schemas to C++ classes. Visit http://www.codalogic.com/lmx/ for more info | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
