- 浏览: 138188 次
- 性别:
- 来自: 杭州
最新评论
-
ziyuetian1943:
刚开始接触DB2 存储过程,在楼主这儿学习了
DB2存储过程总结 -
liubey:
我想问这个存储过程需要编译一下吗,也就是先执行一下,还是直接放 ...
在JAVA中调用DB2存储过程 -
新入职:
咦?竟然在2个月前留过言!
jQuery:基本教程 -
incredible:
good !
java中final与static关键字 -
jiangnan9399:
我现在正在学习JQery看了你的教程帮助很大,谢谢啦,
jQuery:基本教程
Introduction to XML
XML was designed to transport(传输) and store data.
HTML was designed to display data.
----------------------------------------------------------------------
What You Should Already Know
Before you continue you should have a basic understanding of the following:
HTML
JavaScript
If you want to study these subjects first, find the tutorials on our Home page.
----------------------------------------------------------------------
What is XML?
XML stands for EXtensible Markup Language
XML is a markup language much like HTML
XML was designed to carry data, not to display data
XML tags are not predefined(预先确定). You must define your own tags
XML is designed to be self-descriptive(自我解释)
XML is a W3C Recommendation(推荐)
----------------------------------------------------------------------
The Difference Between XML and HTML
1.XML is not a replacement for HTML.
2.XML and HTML were designed with different goals:
3.XML was designed to transport and store data, with focus on what data is.
4.HTML was designed to display data, with focus on how data looks.
5.HTML is about displaying information, while XML is about carrying information.
----------------------------------------------------------------------
XML Does not DO Anything
Maybe it is a little hard to understand, but XML does not DO anything. XML was created to structure(组织), store(存储), and transport(传输) information.
The following example is a note to Tove from Jani, stored as XML:
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.
But still, this XML document does not DO anything. It is just pure(纯的) information wrapped in(被...包围) tags. Someone must write a piece of software to send, receive or display it.
----------------------------------------------------------------------
XML is Just Plain Text(纯文本)
XML is nothing special. It is just plain text. Software that can handle plain text can also handle XML.
However, XML-aware applications can handle the XML tags specially. The functional meaning of the tags depends on the nature of the application.
----------------------------------------------------------------------
With XML You Invent Your Own Tags
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.
That is because the XML language has no predefined tags.
The tags used in HTML (and the structure of HTML) are predefined. HTML documents can only use tags defined in the HTML standard (like <p>, <h1>, etc.).
XML allows the author to define his own tags and his own document structure.
----------------------------------------------------------------------
XML is Not a Replacement for HTML
XML is a complement(补充) to HTML.
It is important to understand that XML is not a replacement(更换) for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.
My best description of XML is this:
XML is a software and hardware independent tool for carrying information.
----------------------------------------------------------------------
XML is a W3C Recommendation
XML became a W3C Recommendation 10. February 1998.
To read more about the XML activities at W3C, please read our W3C Tutorial(www.w3schools.com).
----------------------------------------------------------------------
XML is Everywhere
We have been participating in(参加) XML development since its creation. It has been amazing(令人惊异的) to see how quickly the XML standard has developed, and how quickly a large number of software vendors have adopted the standard.
XML is now as important for the Web as HTML was to the foundation(基础) of the Web.
XML is everywhere. It is the most common tool for data transmissions(数据传输) between all sorts of applications, and is becoming more and more popular in the area of storing and describing information.
----------------------------------------------------------------------
发表评论
-
Struts2 namespace总结
2010-03-08 20:50 1738创建struts2的应用,首先 ... -
The Zen of Python
2009-12-26 23:46 878Abstract Long time Pythone ... -
权限控制
2009-10-28 09:23 815在系统权限控制中,要考虑资源功能是属于人,还是属于职位。观察这 ... -
javascript常用tools
2009-10-15 15:46 861//函数说明:求第y年第m月的天数 // ... -
javascript中 null 与 undefined的区别
2009-10-10 21:59 2622第一篇 解剖JavaScript中的null和undefine ... -
jQuery:基本教程
2009-09-30 15:24 1284jQuery:基本教程 这个教程是帮助初始学习jQuer ... -
javascript中获取浏览器的url
2009-09-03 18:47 1713document.location location.hre ... -
java中final与static关键字
2009-08-08 11:21 1467一.final总结 1.final修饰 ... -
linux下ssh安全配置
2009-07-09 13:25 3156linux下ssh安全配置 ssh配置文件目录: /etc ... -
python 学习笔记(一)
2009-05-17 10:40 928(一)软件的安装与配置 1.Python安装(Windows ... -
Mysql数据库导入导出
2009-05-15 16:25 16021. 概述MySQL数据库的导入,有两种方法:1) 先导出数据 ... -
Apache Commons Digester 的使用
2009-05-06 20:41 1257Learning and Using Jakarta Dige ... -
rpm软件管理
2009-04-30 20:26 1369RPM套件安裝 一、基本安裝 rpm -ivh 軟體套件 ... -
linux系统启动详解
2009-04-28 19:28 1269本文以RedHat9.0和i386平台 ... -
解读<c:out>源码
2009-04-23 17:43 3427<c:out>标签是用来在页面中输出属性值,在使用 ... -
使用 MERGE 语句更新表和视图内容
2009-04-20 12:37 1933DB2® 数据库管理器能够使用来自另一个源的数据(通常是表引用 ... -
高质量JAVA:错误模式
2009-04-08 11:43 798错误模式:介绍 诊断和纠正 Java 程序中反复出现 ... -
电器销售需求分析
2009-04-05 15:52 1033电器销售需求分析 doc 基本完成 基本 ... -
汇编编程推荐书目
2009-04-05 15:01 1401书名:《Windows环境 ... -
w3school帮助文档
2009-04-05 14:35 1289w3school帮助文档 中文版 chm
相关推荐
Introduction to XML SchemaIntroduction to XML Schema
Introduction to Computers, Internet and the World Wide Web. 2. Introduction to Python Programming. 3. Control Structures. 4. Functions. 5. Tuples, Lists, and Dictionaries. 6. Introduction to the...
Networkers2009:BRKAPP-1015 - Introduction to Web 2.0, AJAX, XML, Web Services for Network Engineers
Chapter 4: Introduction to JAX-RS Chapter 5: API Portfolio and Framework Chapter 6: API Platform and Data Handler Chapter 7: API Management and API Client Chapter 8: API Security and Caching
1: Introduction to Spring Integration 2: Enterprise Integration Fundamentals Part 2 - Messaging 3: Messages and Channels 4: Message Endpoints 5: Getting Down to Business 6: Go beyond ...
In this section, I also provide an introduction to the Asynchronous JavaScript and XML (Ajax) approach. The book finishes by examining how to work with XML on the server. It covers two server- side ...
After a brief introduction to Web communication features and XML fundamentals, the book examines the benefits of adopting XML and illustrates various types of XML use: XML in document management; XML...
XML Detailed Introduction
IBM介绍XML及相关技术资料
XML的简介为有兴趣学习更多有关结构化文档的人员在合理的技术水平上提供了可扩展标记语言。 除了涵盖XML 1.0规范之外,本文还概述了相关的XML规范,这些规范正在不断发展。
This book is your introduction to the exciting and fast growing world of XML. In this book, you’ll learn how to write documents in XML and how to use style sheets to convert those documents into ...
XML introduction .......................
In this book, Sas Jacobs gives you an introduction to XML and E4X. She explores the new XML and XMLList classes and explains E4X expressions, providing examples for both Flash and Flex. In addition to...
lmost ten years ago, my introduction to the commercial world was handling and dealing with the databases of a UK government body. We used a free text-retrieval system to store information about ...
分别是XML快速入门,XML的概念,XML的术语,XML的实现,XML的实例分析。最后附录介绍了XML的相关资源。作者站在普通网页设计人员的角度,用平实生动的语言,向您讲述XML的方方面面,帮助你拨开XML的神秘面纱,快速...
The XML explosion hardly needs any introduction. It's everywhere and there just seems to be no end to what can be done with XML. While writing to the W3C standards, and keeping up with the pace for ...
Readers will be given a thorough introduction to .NET and its XML building blocks while acquiring a firm grasp of how those blocks can be used to build any Web site or service so that it will ...
第四章:Introduction to the Cisco IOS 第五章:IP路由 第六章:Enhanced IGRP(EIGRP) and Open Shortest Path First(OSPF) 第七章:Layer 2 Switching 第八章:Virtual LANs(VLANs) 第九章:Managing a Cisco ...
An Introduction to Design Patterns in C++ with Qt 4 is a complete tutorial and reference that assumes no previous knowledge of C, C++, objects, or patterns. You'll walk through every core concept, ...