" to comment text; 2. Use "" to annotate text."/> " to comment text; 2. Use "" to annotate text.">

Home >Common Problem >How to add comments to xml?

How to add comments to xml?

青灯夜游
青灯夜游Original
2020-11-04 10:25:3647139browse

How to add comments to xml?

[Solution: Single comment and multi-line comment problem in xml file]

First type (single line):

      <!--  注释内容   -->

The second type (multiple lines) :

      <!--      

      注释内容(无其他注释符)

      -->

The third type (multiple lines) :

       

As shown in the picture:

Under the premise that 2 has been commented, if you want to comment 1, you need to use the third comment method.

How to add comments to xml?

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of How to add comments to xml?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn