source12.xml

来自「XML tutorial」· XML 代码 · 共 32 行

XML
32
字号
<XTutorial id="12" next="13" previous="11">
<description lang='eng'>CDATA sections  are used to escape blocks of text containing characters which would otherwise be recognized as markup. CDATA sections begin with the string "{![CDATA[" and end with
the string "]]}". The string ']]}' must not occur inside CDATA section. </description>
<!-- <description lang='cze'>CDATA sekce se používá v případě, kdy potřebujete použít text, který obsahuje znaky, které jsou běžně používány pro značkování. CDATA sekce začíná řetězcem "{![CDATA[" a končí řetězcem "]]}". CDATA sekce nesmí obsahovat řetězec ']]}'. </description> -->
<description lang='chi'>CDATA段可以用于编码包含有标记字符的文本块, CDATA段以字符串 " {![CDATA[" 和 "]]}" 作为开始和结束. 字符串 ']]}' 不能在CDATA段内出现.</description>

<demo type="wf">
<description lang='eng'>CDATA section </description>
<!-- <description lang='cze'>CDATA sekce</description> -->
<description lang='chi'>CDATA 段 </description>
<doc>
{example}
	{![CDATA[ {aaa}bb&amp;cc&lt;&lt;&lt;]]}
{/example}
</doc>

</demo>

<demo type="notwf">
<description lang='eng'>CDATA section must not contain ']]}' </description>
<!-- <description lang='cze'>CDATA sekce nesmí obsahovat ']]}'</description> -->
<description lang='chi'>CDATA 段不能包含 ']]}' </description>
<doc>
{example}
	{![CDATA[ {aaa}bb ]]}<error>cc&lt;&lt;&lt;]]}</error>
{/example}
</doc>

</demo>

</XTutorial>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?