title: How do I comment out a block of tags in XML?
body: <p>How do I comment out a block of tags in XML?</p>
  
  <p>I.e. How can I comment out <code>&lt;staticText&gt;</code> and everything inside it, in the code below?</p>
  
  <pre><code>  &lt;detail&gt;
      &lt;band height="20"&gt;
        &lt;staticText&gt;
          &lt;reportElement x="180" y="0" width="200" height="20"/&gt;
          &lt;text&gt;&lt;![CDATA[Hello World!]]&gt;&lt;/text&gt;
        &lt;/staticText&gt;
      &lt;/band&gt;
    &lt;/detail&gt;
  </code></pre>
  
  <p>I could use <code>&lt;!-- staticText--&gt;</code> but that's just for single tags (as what I know), like <code>//</code> in Java and C. I would like something more like how <code>/** comment **/</code> can be used in Java and C, so I can comment out longer blocks of XML code.</p>