cvc-complex-type.2.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-complex-type.2.2: Element ''{0}'' must have no element [children], and the value must be valid.

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche...c-complex-type

Possible causes for this error:

  • Element has children elements but it should contain only a value and not other elements according to the schema definition.
  • Element content is empty, but value is expected.

An example

<InstdAmt Ccy="EURO">
  <Amount>3.14159</Amount>
</InstdAmt>

Error messageError cvc-complex-type.2.2: Element 'InstdAmt' must have no element [children], and the value must be valid.

How to fix: This issue can be fixed by removing the children elements of given element and filling in a valid value instead.

<InstdAmt Ccy="EUR">3.14159</InstdAmt>