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

前端 未结 13 2215
独厮守ぢ
独厮守ぢ 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 07:57

    I once had to use CDATA when my xml element needed to store HTML code. Something like

    
       

    my para

    ]]>

    So CDATA means it will ignore any character which could otherwise be interpreted as XML tag like < and > etc.

提交回复
热议问题