Error msg when validating with schema
Posted: Fri Aug 19, 2005 6:09 pm
Hi all,
I am trying to validate an xml file using a an w3 schema. Here is the namespace line for the schema. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
The xml file that I am validating does not contain a couple of fields that are defined in the schema. When I do the validation, I get this message;
cvc-complex-type.2.4.a: Invalid content was found starting with element.
How do I code the schema to show that some of the fields are not mandatory?
Thanks,
Doug Harding
State of Utah / Division of Finance
I am trying to validate an xml file using a an w3 schema. Here is the namespace line for the schema. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
The xml file that I am validating does not contain a couple of fields that are defined in the schema. When I do the validation, I get this message;
cvc-complex-type.2.4.a: Invalid content was found starting with element.
How do I code the schema to show that some of the fields are not mandatory?
Thanks,
Doug Harding
State of Utah / Division of Finance