XML CDATA sections contain raw text that should be included, but not parsed, with the XML that contains it.
XML CDATA区段包含应该纳入、但不应剖析的未经处理文字,以及包含这段文字的 XML。
CDATA sections are allowed anywhere in XHTML (as they would be in any XML application) but in practice they're completely ignored.
CDATA区域可以出现在XHTML中的任意位置(就像在任何XML应用程序中一样),但在实践中,这些CDATA区域通常会被忽略。
So either you need to convert everything in XML-safe encodings, or you need to put large areas of text, code or whatever, into CDATA blocks.
所以您或者需要以 XML 支持的编码对它们进行转换,或者需要将一大段的文本、代码或其他内容放到 CDATA 块中。
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数据字符,正如文档的字符编码所规定的一样。
If the XML parser reads this sequence, it's the end of your CDATA section and you might end up getting a parser error when it hits the real section end.
如果xml解析器读到这个序列,就认为您的CDATA区域结束,当解析器遇到真正的区域结尾时,可能会发出一条解析错误消息。
XML also can include other declarations and definitions at the beginning of the document and a few other complications (such as CDATA blocks).
XML文档的开头部分还可以包含其他声明和定义,以及其他复杂内容(比如cdata块)。
Wrapping the sample markup in a CDATA section lets you write it as-is, without having the XML parser attempt to interpret it as a element containing an element.
将这个样例标记包含在一个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命令,它告诉查看程序停止解析代码,并读取接下来的块中的代码,这里的代码是字符数据的形式。
For instance, text nodes, CDATA sections, comments, processing instructions, attributes, whitespace, document types, and XML declarations have values.
例如,文本节点、CDATA部件、注释、处理指令、属性、空格、文档类型和XML声明具有值。
A better solution might be to put the data directly into your XML document. That's where XML's CDATA section comes into play.
更好的解决方案可能是将数据直接放到您的XML文档中,那就是XML的CDATA区域发挥作用的时候了。
In addition to general text data, XML can also be used to store binary data through a special set of tags known as CDATA.
除了一般的文本数据,XML过去常用于存储二进制数据,通过一个称为CDATA的特殊标记集合实现。
Often the response data contains an XML structure contained within a CDATA tag.
响应数据经常包含一个包含在CDATA标记中的XML结构。
Even though you can't take advantage of CDATA sections in XHTML documents, XML is well-supported in browsers and regular programming platforms.
即使您不能在XHTML文档中利用CDATA的优势,XML仍然在浏览器和常规编程平台中受到很好的支持。
In practice it seldom works: XML syntax requires support for multiple encodings and many subtleties, such as CDATA sections or entities.
但实际上却很难成功:XML语法要求支持多种编码和很多难以捉摸的特性,比如CDATA 节和实体。
Since the statement in the STMTKEY element contains the special XML characters , the query text needs to be enclosed in a CDATA section starting with
由于 STMTKEY元素中的语句包含特殊的XML字符 ,因此需要用一个CDATA 部分将查询文本包围起来,CDATA 的开始部分为
In fact, that's the reason why you should wrap an embedded script in a CDATA section instead of an XML comment-comments are too fragile.
事实上,那就是为什么应该将嵌入式脚本封装到CDATA区域而不是xml注释中的原因—注释太脆弱了。
Note: Since the URL might contain special characters, we have embedded it inside a CDATA section to prevent the request XML from becoming malformed.
注意:因为URL可能包含特殊字符,所以我们把它嵌入在CDATA部分中,以避免请求XML变得怪异。
Remember that XSLT also loses some information in XML files, such as the top declarations, entity references and CDATA sections.
记住,XSLT还丢失了XML文件中的其他信息,如顶层声明、实体引用和cdata节。
A final thing to keep in mind when adding chunks of data to your XML with CDATA sections is size.
当您使用CDATA区域在XML中添加数据块时,最后需要考虑的问题是大小。
For example, a rule that says "all well-formed XML is acceptable as long as it doesn't use CDATA sections".
比如,一条规则说“所有结构良好的XML只要不使用cdata节都是可接受的”。
Another possibility is to move any big chunks of CDATA that are in the file out of XML altogether and into their own files with their own formats.
另一种方法是将XML中大块的CDATA删除,然后使用各自格式单独保存到各自的文件中。
XML encapsulation — Embedding system command in the XML payload, such as through the CDATA tag.
XML封装——在xml负载中嵌入系统命令,如通过CDATA标记。
Also note that the CDATA sections in the original XML document have been removed.
还要注意,原始xml文档中的cdata节被去掉了。
The value elements represent simple value components of the XML document, which can be attributes, simple child elements (with only text content), text, or CDATA.
value元素表示XML文档的简单值组件,它可以是属性、简单的子元素(只带有文本内容)、文本或CDATA。
The XML parser will parse the script as an XML document unless you enclose your script in a CDATA block. Therefore, a JavaScript element would now look like this.
xml解析器将脚本解析成XML文档,除非您将脚本封装入cdata块中。
You have learned how to declare the legal elements, attributes, entities, and CDATA sections for XML documents.
你已经知道了如何来声明合法元素,属性,实体以及XML文件的CDATA部分。
You have learned how to declare the legal elements, attributes, entities, and CDATA sections for XML documents.
你已经知道了如何来声明合法元素,属性,实体以及XML文件的CDATA部分。
应用推荐