XML.comment

An XML.comment that is encountered outside the document type declaration is represented by a syntax element with field type XML.comment. 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 -->. This ensures that the contents of the comment cannot prematurely terminate the comment. Occurrences of the following characters are not translated to their escape sequences:
< > & " ' 

The following is an example of the XML comment in an XML document:

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