XML Schema generated by QTAssistant/ XML Schema Refactoring ( XSR) Module paschidev. < xsd: element name= " Export_ release" > < xsd: complexType> < xsd: sequence> < xsd: element type= " xsd: string". It has to do with the embeddable schema you have on the page and with root element name Validator. Is it possible that by any chance, root element name of schema " tcm: " is no longer Validator? It would is indeed a simply type. However, it is not declared in the target namespace of the current XSD; it' s declared in the namespace of the imported XSD. Reference customEntry in the imported org/ customEntry. xs: attribute name= " myBool" type= " myBool" use= " optional" form= " qualfied" / >. This should make this a valid element. As for why approach 1 failed, I' m not sure, your XSD and XML match.
It might be worth adding setting the. id> < property name= " cafe_ table_ group_ id" insert= " false" update= " false" > < column name= " cafe_ table_ group_ id" sql- type= " decimal" not- null= " false" / > < / property> < many- to- one name= " cafe_ table_ group" class= " CafePOS. XML Validation error: The element is not declared · c# xml xsd. I would like to validate the XML in the incoming requests using an XSD that I have defined. You have the type declared but no element declared of that type. I have found the problem after a frustrating day and a half of iterations. Changing: FileStream fs = new FileStream( xsdPath, FileMode. Open) ; XmlReader reader = XmlReader. Create( fs) ; XmlSchemaSet xss = new. Create( fs) ; XmlSchemaSet xss = the parent XSD, change < xs: element minOccurs= " 0" maxOccurs= " unbounded" name= " Neck" type= " wn: Neck" / >.
to < xs: element minOccurs= " 0" maxOccurs= " unbounded" ref= " wn: Neck" / >. because you wish to reference the.