source10.xml

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

XML
28
字号
<XTutorial id="10" next="11" previous="9">
<description lang='eng'>Comments may appear anywhere in a document outside other markup. An XML processor may, but need not, make it possible for an application to retrieve the text of comments. The string "--" (double-hyphen) must not occur within comments. </description>
<demo type="wf">
<description lang='eng'>Comment can contain any characters apart from --</description>
<doc>
{!-- doc A --}
{example}
{!-- &lt;HEAD>  --}
{!-- Characters &lt;&amp;&lt;  --}
{/example}
</doc>

</demo>

<demo type="notwf">
<description lang='eng'>Comment must not contain  --</description>
<doc>
{example}
	{!-- A <error>--</error> B --}
{/example}
</doc>

</demo>

</XTutorial>

⌨️ 快捷键说明

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