- Knowledgebase
- XML Schema
- Content
-
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
5
An XML document is only allowed to have one root element in order to be well-formed.
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.
Error description:
An XML document is only allowed to have one root element in order to be well-formed. Make sure that the tag your document starts with is not closed until the end of the document.
There could also be some other extra content at the end of the document, for example characters or non-printable control characters. If it seems like there is not any extra content at the end of the document you may need to use hex-editor to see possible control characters.
Example:
According to ISO 20022 payments initiation message standard the document root element is <Document>. A rough example of the structure of an ISO 20022 payments message:
<
Document> <!-- Root element started -->
<pain.001.001.02>
<GrpHdr>Group Header elements here</GrpHdr>
<PmtInf>
Payment Information elements here
<CdtTrfTxInf>Credit Transfer Transaction Information elements here</CdtTrfTxInf>
</PmtInf>
</pain.001.001.02>
</Document> <!-- Root element closed -->
Error message given by the service:
"Extra content at the end of the document."