MarkupEntityMismatch
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: XML document structures must start and end within the same entity.
Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche...t_Declarations
Meaning of error: Service does is not able to match start-tag with an end-tag
Possible causes for this error:
- End tag is missing
- Supposed end-tag is missing slash and thus starting a new tag. Following is a correct end-tag form: </ElemNm>
- Comment is not closed, causing XML data to be inside comment and not included in XML parsing
Example
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">
<CstmrCdtTrfInitn>
...
</CstmrCdtTrfInitn>
Error message: Fatal Error MarkupEntityMismatch : XML document structures must start and end within the same entity.
How to fix: Making sure that start-tags match with end-tags. In this case adding </Document> to the end of the file
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">
<CstmrCdtTrfInitn>
...
</CstmrCdtTrfInitn>
</Doc