Table of contents
|Please note! 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: The content of elements must consist of well-formed character data or markup.
Error description in schema standard: http://www.w3.org/TR/2004/REC-xml-20...04/#NT-content
Meaning of error: Element or tag structure is not considered to be well-formed and service is not able to parse given content as XML.
Possible causes for this error:
- Tags are not presented correctly or data inside element consists of invalid characters. For reference a valid start tag, data and end tag looks like the following: <ElemNm>Data inside element</ElemNm>
- Tag consists of a non-allowed (first) character. Further reading at w3.org
Error message: Fatal Error MarkupNotRecognizedInContent : The content of elements must consist of well-formed character data or markup.
How to fix: In this case a comment was tried to be inserted before MsgId, but the structure of the comment is not correct and XML parsing thinks element starts with character <, and first character in element tag name is -. Correct way to mark a comment is to use character ! after <, as in <!--Comment-->