- 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.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.4.2: Cannot resolve ''{1}'' to a type definition for element ''{0}''.
Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cvc-elt
Possible causes for this error:
- An undefined type definition is used for an element. Type definition must be introduced in the schema file which is used. This can also occur when using multiple schema files and the file with the definition is not referenced using "import" or "include" commands.
An example
<PstCd xsi:type="Max16Text1">String</PstCd>
Error message: Error cvc-elt.4.2: Cannot resolve 'Max16Text1' to a type definition for element 'PstCd'.
How to fix: Type definition ("xsi:type") must be corrected to the one defined in the schema. In this example the correct value is 'Max16Text':
<PstCd xsi:type="Max16Text">String</PstCd>
or type definition should be removed:
<PstCd>String</PstCd>
Alternatively type definition 'Max16Text1' can be added to schema if appropriate.