cvc-complex-type.3.1

Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

General description of the error:

The format of the error message: cvc-complex-type.3.1: Value ''{2}'' of attribute ''{1}'' of element ''{0}'' is not valid with respect to the corresponding attribute use. Attribute ''{1}'' has a fixed value of ''{3}''.

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cvc-complex-type

Possible causes for this error:

  • Element has an attribute and it has a fixed value which is defined in the schema. Attribute value is used that is different from this fixed value.

An example

<Test_element>
  <Field name="Field1">String</Field>
  <Field4 name="
Field">String</Field4>
</Test_element>

Error message: Error cvc-complex-type.3.1: Value 'Field' of attribute 'name' of element 'Field4' is not valid with respect to the corresponding attribute use. Attribute 'name' has a fixed value of 'Field3'.

How to fix: The error can be corrected by using the attribute value which is defined in the schema. In this case the value is defined as "Field3" so this value should be used.

<Test_element>
  <Field name="Field1">String</Field>
  <Field4 name="
Field3">String</Field4>
</Test_element>