设为首页 友情链接
在线留言 发表文章
加入收藏 广告联系

刺猬首页

| 专案技术 | 网络技术 | 图形图象 | 网络编程 | 网页设计 | 操作系统 | 服务器 | 技术白皮书 | 在线实验室 | 刺猬论坛 |
小说专版  | 数据库 | 设计赏析 | 存储频道 | 网络安全 | 私服架设 |  Solaris | 网站评估 | PC维护技巧 | 下载中心 | 博 客 |
专   题: | Linux | java | cisco | 防病毒 | 刀片 | SOA | iscsi | ASP.NET | SQL | Oracle |
您现在的位置: 刺猬宫 >> 网络编程 >> XML >> 教程正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
中英文双语导航菜单
用C#截取指定长度的中英…
JAVA开发者应该去的20个…
JAVA开发者应该去的20个…
Showdate函数显示各种英…
一个兼容IE、Firefox和O…
完全用CSS实现的中英文双…
控制输出字符串的长度,…
DataGrid英文换行问题的…
常见.Net 英文专业词汇收…
  中英文对照学习认识一下XML语言           
中英文对照学习认识一下XML语言
 

XML was designed to describe data and to focus on what data is.
XML 的产生是用来描述数据并关注数据的实质是什么

HTML was designed to display data and to focus on how data looks.
HTML 则是用来显示数据,它所关注的是数据显示的效果

What You Should Already Know [ 哪些是你应该已经知道的 ]

Before you continue you should have a basic understanding of the following:
在你继续前~你应该对以下所列有个基本的了解~:

  • HTML / XHTML
  • JavaScript 或 VBScript

If you want to study these subjects first, find the tutorials on our
如果你想先学习这些主题~请先在主页上找到指南这一快内容


What is XML? [ 什么是XML? ]

  • XML stands for EXtensible Markup Language
  • XML is a markup language much like HTML
  • XML was designed to describe data
  • XML tags are not predefined. You must define your own tags
  • XML uses a Document Type Definition (DTD) or an XML Schema to describe the data
  • XML with a DTD or XML Schema is designed to be self-descriptive
  • XML is a W3C Recommendation
  • XML 就是 EXtensible Markup Language (支持可扩展标记语言)
  • XML 是一种 标记语言 类似HTML语言
  • XML 是被用来 描述数据
  • XML 的标签都没被定义。你必须 对你的标签进行定义
  • XML 使用 文件类型定义 (DTD) 或是 XML Schema(模型) 对数据进行描述
  • XML中加入 DTD 或者XML Schema 可以被用来 自我描述
  • XML 是W3C组织(World Wode Web Consortium)所推荐的

XML is a W3C Recommendation [ XML是 W3C 推荐的 ]

The Extensible Markup Language (XML) became a W3C Recommendation 10. February 1998.
可扩展标记语言(XML)在1998年2月10日被W3C 所推荐


The main difference between XML and HTML [ XML 和HTML 之间的主要区别 ]

XML was designed to carry data.
XML 是被用来传送数据的

XML is not a replacement for HTML.
XML 还不能代替 HTML 的位置 XML and HTML were designed with different goals:
XML 和HTML有各自不同的用途:

XML was designed to describe data and to focus on what data is.
XML 的产生是用来描述数据并关注数据的实质是什么
HTML was designed to display data and to focus on how data looks.
HTML 则是用来显示数据,它所关注的是数据显示的效果

HTML is about displaying information, while XML is about describing information.
HTML 是用来显示信息~而XML则是来描述信息的


XML does not DO anything [ 什么也不做 ]

XML was not designed to DO anything.
被设计成什么都不做的。

Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store and to send information.
这可能有一点难以理解~但是XML的确是不能输出任何数据的~XML 是用与建立结构,存和发送信息的。

The following example is a note to Tove from Jani, stored as XML:
下面是个XML例子

<note> 

<to>Tove</to> 

<from>Jani</from> 

<heading>Reminder</heading> 



<body>Don't forget me this weekend!</body> 

</note>

The note has a header and a message body. It also has sender and receiver information. But still, this XML document does not DO anything. It is just pure information wrapped in XML tags. Someone must write a piece of software to send, receive or display it.
这段文档有个首部和 信息的主体~,它同时也有发送者和接受者的信息。但是尽管如此,这个XML文档同样不能够输出任何数据~,它纯粹只是封装在XML标签中的信息。你必需编写一份软件才可可以发送,接收或者是显示这段信息。


XML is free and extensible [ XML是可以自由扩展的 ]

XML tags are not predefined. You must "invent" your own tags.
XML的标签是不能够预先定义的,你必需“创造”你自己的标签

The tags used to mark up HTML documents and the structure of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like <p>, <h1>, etc.).
这个标签常用与把 HTML 文档 标出~并且HTML文档的结构是要被预先定义的,HTML文档建立者仅仅能使用 定义在标准HTML当中的标签(像 <p>, <h1>, etc.)。

XML allows the author to define his own tags and his own document structure.
XML 允许 创造者定义自己的标签 和自己的文档结构。

The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.
在上面例子中的标签(像 <to> 和 <from>)不能够在任何标准的XML当中定义 这些标签是这个XML文档的作者所“创造”的


XML is a complement to HTML [ XML是对HTML的一种补充 ]

XML is not a replacement for HTML.
XML还不能够取代HTML的位置

It is important to understand that XML is not a replacement for HTML. In future Web development it is most likely that XML will be used to describe the data, while HTML will be used to format and display the same data.
理解XML目前是不能取代HTML的位置这是很重要的,在将来万维网的发展很有可能是XML被用描述数据,而HTML则被用来布局和显示这些同样的数据。

My best description of XML is this: XML is a cross-platform, software and hardware independent tool for transmitting information.
对于XML的最佳描述是这样的:XML是 跨平台的~,在传输信息时软件和硬件是相互独立的工具。


XML in future Web development [ XML在未来万维网发展中的展望 ]

XML is going to be everywhere.
XML将延伸到各个地方

We have been participating in XML development since its creation. It has been amazing to see how quickly the XML standard has been developed and how quickly a large number of software vendors have adopted the standard.
自从XML被创造之日起我们就一直参与XML的发展。我们很惊讶的发现XML标准的发展是多么的迅速,一大批软件的开发商已经采用了这项标准。

We strongly believe that XML will be as important to the future of the Web as HTML has been to the foundation of the Web and that XML will be the most common tool for all data manipulation and data transmission.
我们坚信XML在将来会变的和已经成为万维网基础的HTML一样重要~~,而且XML将会成为所有操作和传输数据最为普遍的工具


XML Joke [ XML 笑话 ]

Question: When should I use XML?
问: 我该在什么时候使用XML?

Answer: When you need a buzzword in your resume.
答: 你可以在你的个人简历中写上你会XML。

频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。

原始作者:佚名 录入时间:2007-5-13 02:19:54
信息来源:不详 投稿信箱:itqoo@126.com
教程录入:itqoo    责任编辑:itqoo 
  • 上一个教程:

  • 下一个教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    - 关于我们 - 合作伙伴 - 友情链接 - 广告刊登 - 投稿热线 - 在线留言版权声明联系方式 -
    IT公社版权所有 粤ICP备05127012号
    Copyrigh@2005-2006 itqoo.com.Inc All Rights Reserved  推荐分辨率 1024*768
    联系站长:E-Mail:itqoo@126.com     MSN:urchincc@hotmail.com    QQ:点击这里给我发消息
    特别感谢:亿太网络提供空间支持