问题:
I often find this strange CDATA
tag in XML
files: 我经常在XML
文件中找到这个奇怪的CDATA
标记:
<![CDATA[some stuff]]>
I have observed that this CDATA
tag always comes at the beginning, and then followed by some stuff. 我观察到这个CDATA
标签总是在开头,然后是一些东西。
But sometimes it is used, sometimes it is not. 但有时它被使用,有时则不然。 I assume it is to mark that some stuff
is the "data" that will be inserted after that. 我认为这是为了标记some stuff
是将在此之后插入的“数据”。 But what kind of data is some stuff
? 但是什么样的数据是什么some stuff
? Isn't anything I write in XML tags some sort of data? 我在XML标签中写的东西不是某种数据吗?
解决方案:
参考一: https://stackoom.com/question/BgIB/XML中的-CDATA-是什么意思参考二: https://oldbug.net/q/BgIB/What-does-CDATA-in-XML-mean
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4317230