cvc-elt.4.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-elt.4.1: The value ''{2}'' of attribute ''{1}'' of element ''{0}'' is not a valid QName.

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

Possible causes for this error:

  • Type given for the element in payment file is different from the type that is defined in the schema.
  • Element attribute (for example "xsi: type=...") is not defined in the used namespace.

An example

<Ccy xsi:type="xs:string">AAA</Ccy>

Error message: Error cvc-elt.4.1: The value 'xs:string' of attribute 'http://www.w3.org/2001/XMLSchema-instance,type' of element 'Ccy' is not a valid QName.

How to fix:

The error can be corrected by correcting the type for the element to one defined in schema.

<Ccy xsi:type="ActiveOrHistoricCurrencyCode">AAA</Ccy>

 

In most cases there is no need to use a separate type declaration as element attribute and it can be removed.

<Ccy>AAA</Ccy>

<Ccy>AAA</Ccy>