本文介绍了什么是PCDATA和CDATA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
看起来,PCDATA和CDATA的松散定义是:PCDATA是字符数据,但是是 >被解析。但是后来有人告诉我说CDATA实际上是被解析的,或者PCDATA实际上没有被解析......所以这有点混乱。有人知道真正的交易是什么吗?
更新:我实际上在Wikipedia上添加了PCDATA定义...所以不要回答这个问题因为这只是我粗略的理解。
解决方案
来自WIKI:
it seems that a loose definition of PCDATA and CDATA is that
- PCDATA is character data, but is to be parsed.
- CDATA is character data, and is not to be parsed.
but then someone told me that CDATA is actually parsed or PCDATA is actually not parsed... so it is a bit of a confusion. Does anyone know the real deal is?
Update: I actually added the PCDATA definition on Wikipedia... so don't take that answer too seriously as that's only my rough understanding of it.
解决方案
From WIKI:
这篇关于什么是PCDATA和CDATA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!