- Knowledgebase
- XML Schema
- Cvc-elt
-
Glossary
-
XML / ISO 20022 Standard
-
ISO 20022 Messages
-
XML Schema
- Miscellaneous
- Attribute
- Closing Tag
- Comment
- Content
- Cvc-complex-type
- Cvc-elt
- Cvc-id
- Cvc-identity-constraint
- Cvc-minexclusive-valid
- Cvc-mininclusive-valid
- Cvc-type
- Cvc-totaldigits-valid
- Cvc-attribute
- Cvc-datatype-valid
- Maximum Length
- Cvc-enumeration-valid
- Cvc-fractiondigits-valid
- Cvc-length-valid
- Cvc-maxexclusive-valid
- Cvc-maxinclusive-valid
- Cvc-maxlength-valid
- Cvc-minlength-valid
- Cvc-pattern-valid
- Element Value
- Encoding
- Length
- Mandatory element
- Missing
- Missing Tag
- Missing Child Element
- MIXD
- Root
- Unsupported Characters
- UTF-8
- Value
- Wrong Declaration
-
EPC SEPA
-
CGI-MP
-
US ACH (Nacha)
-
SWIFT MT
-
Finvoice
-
Bank-Specific
-
XMLdation Service Guides
-
Studio Guide
-
Simulator
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> |