cvc-elt.2

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-elt.2: The value of "{0}" in the element declaration for "{1}" must be false.

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche...70830/#cvc-elt

Possible causes for this error:

  • Schema has defined an element as mandatory ('minOccurs="1"') but also as abstract ('abstract="true"') which means that no instances are allowed from it. Element being defined as abstract means that this element cannot be used directly but e.g. substitutionGroup structure must be used instead.

An example

<smallCar>
  <person pId="22" id="ID" xsi:type="urn:Programmer"></person>
</smallCar>

Error message: Error cvc-elt.2: The value of {abstract} in the element declaration for 'person' must be false.

How to fix: You should check the schema to see if there is a substitutionGroup defined for the element.