What does <![CDATA[]]> in XML mean?

前端 未结 13 2174
独厮守ぢ
独厮守ぢ 2020-11-21 07:52

I often find this strange CDATA tag in XML files:


I have observed that this CD

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-21 08:23

    From Wikipedia:

    [In] an XML document or external parsed entity, a CDATA section is a section of element content that is marked for the parser to interpret as only character data, not markup.

    http://en.wikipedia.org/wiki/CDATA

    Thus: text inside CDATA is seen by the parser but only as characters not as XML nodes.

提交回复
热议问题