how to comment in xml code code example Example 1: xml comments <!-- This is a XML comment. --> Example 2: comments in xml <!--Your comment-->