" 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?
[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.
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!