如何注释XML中的标记块?
即,我如何在下面的代码中注释<staticText>及其内部的所有内容?
<detail>
<band height="20">
<staticText>
<reportElement x="180" y="0" width="200" height="20"/>
<text><![CDATA[Hello World!]]></text>
</staticText>
</band>
</detail>
我可以用<!--staticText-->但这仅适用于单个标记(如我所知),如Java和C中的//。