XML中的<![CDATA []]>是什么意思?

拟墨画扇 提交于 2020-08-15 07:32:18

问题:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!