Even though the contents of the CDATA section pass through your parser untouched, they still need to be valid XML data characters, as specified by the document's character encoding.
即使CDATA区域的内容完好无损地通过您的解析器,它们仍需是有效的XML数据字符,正如文档的字符编码所规定的一样。
CDATA is the XML command that tells the viewer to stop parsing the code and read the code within the block that follows as character data.
CDATA是XML命令,它告诉查看程序停止解析代码,并读取接下来的块中的代码,这里的代码是字符数据的形式。
CDATA (character data) sections are treated as a block of data by the parser, allowing you to include any character in the data stream.
CDATA(字符数据)区域被解析器视为数据块,从而允许您在数据流中包含任意字符。
应用推荐