XML comment

An XML comment encountered outside the document type declaration is represented by the Comment value syntax element. The value of the element is the comment text from the XML message.

If the value of the element contains the character sequence -->, the sequence is replaced with the text --&gt;. This ensures that the contents of the comment cannot prematurely terminate the comment. Occurrences of <, >, &, ", and ' are not translated to their escape sequences.

Examples of the XML comment in an XML document and in tree structure form are shown below:

<example><!-- This is a comment --></example>

Example XML comment tree structure
Related concepts
Message flows overview
Related tasks
Developing message flows
Related reference
The XML message body
XML message body example: elements, attributes, and content
XML document type declaration