Difference between PCDATA and CDATA in DTD

后端 未结 6 1814
耶瑟儿~
耶瑟儿~ 2020-12-04 06:52

What is the difference between #PCDATA and #CDATA in DTD?

6条回答
  •  忘掉有多难
    2020-12-04 07:27

    CDATA (Character DATA): It is similarly to a comment but it is part of document. i.e. CDATA is a data, it is part of the document but the data can not parsed in XML.
    Note: XML comment omits while parsing an XML but CDATA shows as it is.

    PCDATA (Parsed Character DATA) :By default, everything is PCDATA. PCDATA is a data, it can be parsed in XML.

提交回复
热议问题