【发布时间】:2013-02-15 18:51:57
【问题描述】:
使用simplexml通过php解析时,xml中是否可以有多行注释?
我试过这个:
<!--
my comment
fsdfs
-->
但得到:评论未终止
我真的必须:
<!-- my comment -->
<!-- fsdfs -->
【问题讨论】:
-
看看这个:stackoverflow.com/questions/2757396/… 什么解析器给你这个错误?
-
simplexml 似乎不能很好地处理 cmets。如果这是一个问题,除了 simplexml 之外,还有其他 API 可以很好地处理多行 cmets。 stackoverflow.com/questions/2139012/…
标签: php xml xml-parsing simplexml