Hello, I am using libxml version 28. I have a query regarding parsing of the schema file and as well as schema validation. Is the attached schema (1.xsd) syntactically correct, (It is having more than 1 element with the same name, in the complex definition). If it is correct; instance document (2.xml) is success but whereas the instance document (3.xml) is returning failure for schema validation using xmlSchemaValidateDoc( ). But for schema file, 4.xsd; in which I have interchanged the datatype definitions, (xs:int with xs:string and vice-versa), it returns success for both instance document 2.xml and 3.xml. Any leads will be appreciated. Thanks in advance for the reply. Thanks and Regards, Nagesh.
Attachment:
4.xsd
Description: Text Data
Attachment:
1.xsd
Description: Text Data
Attachment:
2.xml
Description: Text Data
Attachment:
3.xml
Description: Text Data