cvc-complex-type.4

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.4: Attribute ''{1}'' must appear on element ''{0}''.

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

Possible causes for this error:

  • Element must have an attribute and the attribute is missing.

An example

<InstdAmt>0</InstdAmt>

Error message: Error cvc-complex-type.4: Attribute 'Ccy' must appear on element 'InstdAmt'.

How to fix: The reason for this error can be found out by examining the definition of InstdAmt from the schema and fixing the 'InstdAmt' to be valid against the definition. In this example the attribute 'Ccy' must be given for 'InstdAmt':

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