How can I comment a single line in XML?

前端 未结 5 2083
独厮守ぢ
独厮守ぢ 2021-01-30 06:18

This rather is a verification just not to miss out.

Is/n\'t there a line-comment in XML? So, one without a closer, like \"//\" the compiler uses.

I saw How d

5条回答
  •  半阙折子戏
    2021-01-30 06:46

    No, there is no way to comment a line in XML and have the comment end automatically on a linebreak.

    XML has only one definition for a comment:

    ''
    

    XML forbids -- in comments to maintain compatibility with SGML.

提交回复
热议问题