⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 source.xml

📁 XML tutorial
💻 XML
📖 第 1 页 / 共 2 页
字号:
<!-- generated by run.py  --><!DOCTYPE allExamples [ <!ENTITY eacute '&#233;'> <!ENTITY ugrave '&#249;'> <!ENTITY agrave '&#224;'> <!ENTITY egrave '&#232;'> <!ENTITY ograve '&#242;'> <!ENTITY icirc  '&#238;'> <!ENTITY ecirc  '&#234;'> <!ENTITY ccedil '&#231;'>]><allExamples><XTutorial id="1" next="2" previous="13">
<!-- <description lang='eng'>XML document must contain one or more elements.</description> -->
<description lang='cze'>XML dokument mus铆 obsahovat jeden nebo n臎kolik element暖.</description>

<demo type="wf">
<doc>
{text}This is an XML document{/text}
</doc>
<!-- <description lang='eng'>A well formed document with one element</description> -->
<description lang='cze'>Spr谩vn臎 form谩tovan媒 dokument s jedn铆m elementem</description>
</demo>
<demo type="wf">
<doc>
{text}This is an 
{doctype}XML document{/doctype}
{/text}
</doc>
<!-- <description lang='eng'>A well formed document with several elements</description> -->
<description lang='cze'>Spr谩vn臎 form谩tovan媒 dokument s n臎kolika elementy</description>
</demo>
<demo type="notwf">
<doc>
<error>???</error> This is an XML document <error>???</error>
</doc>
<!-- <description lang='eng'>An XML document must contain at least one element</description> -->
<description lang='cze'>XML dokument mus铆 obsahovat minim谩ln臎 jeden element</description>
</demo>
</XTutorial><XTutorial id="10" next="11" previous="9">
<description lang='cze'>Koment谩艡e se mohou vyskytovat na libovoln茅m m铆st臎 v dokumentu mimo vlastn铆 zna膷kov谩n铆. 艠et臎zec "--" se nesm铆 objevit uvnit艡 koment谩艡e.</description>
<demo type="wf">
<description lang='cze'>Koment谩艡 m暖啪e obsahovat libovoln茅 znaky s v媒jimkou --</description>
<doc>
{!-- doc A --}
{example}
{!-- &lt;HEAD>  --}
{!-- Characters &lt;&amp;&lt;  --}
{/example}
</doc>

</demo>

<demo type="notwf">
<description lang='cze'>Koment谩艡 nesm铆 obsahovat --</description>
<doc>
{example}
	{!-- A <error>--</error> B --}
{/example}
</doc>

</demo>

</XTutorial><XTutorial id="11" next="12" previous="10">
<!-- <description lang='eng'>Processing instructions (PIs) allow documents to contain instructions for applications. </description> -->
<description lang='cze'>Programov茅 instrukce (PI) umo啪艌uj铆 p艡ed谩vat aplikaci r暖zn茅 instrukce.</description>
<demo type="wf">
<!-- <description lang='eng'>Processing instructions </description> -->
<description lang='cze'>PI</description>
<doc>
{example}
{?perl lower-to-upper-case  ?}
{?web-server add-header = "university" ?}
{text}vscht{/text}
{/example}
</doc>

</demo>

<demo type="notwf">
<!-- <description lang='eng'>Processing instruction must end with ?></description> -->
<description lang='cze'>PI mus铆 kon膷it s ?></description>
<doc>
{example}
{?perl run <error>_</error>}

{/example}
</doc>

</demo>

</XTutorial><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>

<demo type="wf">
<!-- <description lang='eng'>CDATA section </description> -->
<description lang='cze'>CDATA sekce</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>
<doc>
{example}
	{![CDATA[ {aaa}bb ]]}<error>cc&lt;&lt;&lt;]]}</error>
{/example}
</doc>

</demo>

</XTutorial><XTutorial id="13" next="1" previous="12">
<!-- <description lang='eng'>XML documents may, and should, begin with an XML declaration which specifies the version of XML being used. </description> -->
<description lang='cze'>XML dokumenty mohou a m臎ly by za膷铆nat XML deklarac铆, kter谩 ur膷uje, jak茅 verze XML bylo pou啪ito.</description>
<description></description>
<demo type="wf">
<!-- <description lang='eng'>XML version specification </description> -->
<description lang='cze'>Ur膷en铆 verze</description>
<doc>
{?xml version="1.0"?}
 {text}This document conforms to the XML 1.0 specification.{/text}
</doc>
</demo>

<demo type="wf">
<!-- <description lang='eng'>Encoding specification </description> -->
<description lang='cze'>Ur膷en铆 k贸dov谩n铆</description>
<doc>
{?xml version="1.0" encoding="ISO-8859-2"?}
 {text}If encoding is not given UTF-8 is assumed{/text}
</doc>

</demo>

</XTutorial><XTutorial id="2" next="3" previous="1">
<!-- <description lang='eng'>There is exactly one element, called the root, or document element, no part of which appears in the content of any other  element.</description> -->
<description lang='cze'>Existuje p艡esn臎 jeden element, kter媒 se naz媒v谩 root (ko艡enov媒 element) nebo dokument element, p艡i膷em啪 啪谩dn谩 jeho 膷谩st se nenach谩z铆 uvnit艡 jin茅ho elementu.</description>
<demo type="wf">
<doc>
{book}This is a book{/book}
</doc>
<!-- <description lang='eng'>{book} is root element </description> -->
<description lang='cze'>{book} je root element</description>
</demo>
<demo type="wf">
<doc>
{list}
{item}Item 1{/item}
{item}Item 2{/item}
{item}Item 3{/item}
{/list}
</doc>
<!-- <description lang='eng'>{list} is root element</description> -->
<description lang='cze'>{list} je root element</description>
</demo>
<demo type="notwf">
<doc>
<error>???</error>
{item}Item 1{/item}
{item}Item 2{/item}
{item}Item 3{/item} 
<error>???</error>
</doc>
<!-- <description lang='eng'>Only one root element is permitted</description> -->
<description lang='cze'>Pouze jeden root element je povolen</description>
</demo>
</XTutorial><XTutorial id="3" next="4" previous="2">
<!-- <description lang='eng'>The name in an element's end-tag must match the element type in the start-tag. Names are case-sensitive</description> -->
<description lang='cze'>Jm茅no v koncov茅m tagu se mus铆 shodovat se jm茅nem v po膷谩te膷n铆m tagu. Z谩le啪铆 na tom, zda jsou pou啪ita velk谩 nebo mal谩 p铆smena.</description>
<demo type="wf">
<doc>
{book}This is a book{/book}
</doc>
<!-- <description lang='eng'>The end-tag {/book} matches the start-tag {book} </description> -->
<description lang='cze'>Koncov媒 tag {/book} se shoduje s po膷谩te膷n铆m tagem {book}</description>
</demo>
<demo type="wf">
<doc>
{list}
{item}Car{/item}
{ITEM}Plane{/ITEM}
{Item}Train{/Item}
{/list}
</doc>
<!-- <description lang='eng'>This well formed document contains 4 different elements {list}, {item}, {ITEM} and {Item}</description> -->
<description lang='cze'>Tento spr谩vn臎 form谩tovan媒 dokument obsahuje 4 r暖zn茅 elementy  {list}, {item}, {ITEM} a {Item}</description>
</demo>
<demo type="notwf">
<doc>
{list}
{item}Car<error>{/itm}</error>
{item}Plane<error>{/ITEM}</error>
{item}Train{/item} 
{/list}
</doc>
<!-- description>{item} - {/itm} and {item} - {/ITEM} does not match</description -->
<description lang='cze'>{item} - {/itm} a {item} - {/ITEM} nesouhlas铆</description>
</demo>
</XTutorial><XTutorial id="4" next="5" previous="3">
<!-- <description lang='eng'>If the start-tag is in the content of another element, the end-tag is in the content of the same element. More simply stated, the elements, delimited by start- and end-tags, nest properly within each other. </description> -->

⌨️ 快捷键说明

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