diff --git a/xml.html.markdown b/xml.html.markdown index c072e0c7..1e1eff86 100644 --- a/xml.html.markdown +++ b/xml.html.markdown @@ -37,7 +37,7 @@ Unlike HTML, XML does not specifies how to display or to format data, just carry + That's what the parser will retrieve from the XML file. + Elements appear between the open and close tags, without parenthesis. --> @@ -64,7 +64,7 @@ Unlike HTML, XML does not specifies how to display or to format data, just carry * Well-Formated Document x Validation A XML document is well-formated if it is syntactically correct. -However, is possible to inject more constraints in the document, +However, it is possible to inject more constraints in the document, using document definitions, such as DTD and XML Schema. A XML document which follows a document definition is called valid, @@ -100,7 +100,7 @@ With this tool, you can check the XML data outside the application logic. diff --git a/zh-cn/xml-cn.html.markdown b/zh-cn/xml-cn.html.markdown new file mode 100644 index 00000000..0476a0a8 --- /dev/null +++ b/zh-cn/xml-cn.html.markdown @@ -0,0 +1,132 @@ +--- +language: xml +contributors: + - ["João Farias", "https://github.com/JoaoGFarias"] +translators: + - ["Zach Zhang", "https://github.com/checkcheckzz"] +filename: learnxml-cn.xml +lang: zh-cn +--- + +XML是一种标记语言,被设计用来存储数据和传输数据。 + +不像HTML, XML不指定怎样显示或格式化数据,只是携带它。 + + +* XML 语法 + +```xml + + + + + + Everyday Italian + Giada De Laurentiis + 2005 + 30.00 + + + Harry Potter + J K. Rowling + 2005 + 29.99 + + + Learning XML + Erik T. Ray + 2003 + 39.95 + + + + + + + + + + + +computer.gif + + +``` + +* 良好格式的文件 x 验证 + +一个XML文件是良好格式的如果它是语法正确的。 +但是, 使用文件定义,比如DTD和XML概要,在文件中插入更多的限制是可能的。 + +一个遵守一个文件定义的XML文件被叫做有效的,对于那个文件来说。 + +有了这个工具,你能够在应用逻辑之外检查XML数据。 + +```xml + + + + + + + + Everyday Italian + 30.00 + + + + + + + + + + +]> + + + + + + + + + + + + + +]> + + + + Everyday Italian + 30.00 + + + + +``` + + +