且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何注释掉 XML 中的标记块?

更新时间:2023-01-07 13:56:51

您可以在多行中使用该样式的注释(HTML 中也存在)

You can use that style of comment across multiple lines (which exists also in HTML)

<detail>
    <band height="20">
    <!--
      Hello,
         I am a multi-line XML comment
         <staticText>
            <reportElement x="180" y="0" width="200" height="20"/>
            <text><![CDATA[Hello World!]]></text>
          </staticText>
      -->
     </band>
</detail>