Home >Backend Development >PHP Tutorial >cdata section for getting started with php operating xml, phpxmlcdata section_PHP tutorial

cdata section for getting started with php operating xml, phpxmlcdata section_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:09:231287browse

cdata section for getting started with php operation xml, phpxmlcdata section

The example in this article describes the cdata section of getting started with php operating xml. Share it with everyone for your reference. The specific analysis is as follows:

Copy code The code is as follows:



Xiao Qiao
Female
23

Content part&*&$#^@*(#))$#*%#
]]>



Zhou Yu
Male
26


Knowledge points:

(1) The text in the xml document will be parsed by the xml parser, but the content in the cdata section will not be parsed. Therefore, cdata can contain some special characters, such as &, <, etc.
(2) The cdata section starts with .

Corresponding to CDATA is PCDATA: PCDATA represents the text to be parsed and defines constraints in the DTD.

I hope this article will be helpful to everyone’s PHP XML programming design.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/946739.htmlTechArticlecdata section for getting started with php operation xml, phpxmlcdata section This article explains the cdata section for getting started with php operation xml . Share it with everyone for your reference. The specific analysis is as follows: Copy code Code...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn