parseContentText(ns, name) - 解析完当前元素的尾部,它必须只包含字符数据内容。
parseContentText(ns, name) -- Parses past the end of the current element, which must have only character data content.
即使CDATA区域的内容完好无损地通过您的解析器,它们仍需是有效的XML数据字符,正如文档的字符编码所规定的一样。
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.
在解析时,引号导致将其中包括的所有字符视为数据,而不会潜在地将其视为标记,并且始终会在将数据添加到树之前删除引号。
When parsing, quotes cause all enclosed characters to be treated as data and not potentially as markup, and the quotes are always stripped before data is added to the tree.
应用推荐