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