xml是一种被用来传输和存储数据的语言,下面给出一些学习xml过程一些简单的例子。具体xml语法请转:http://www.w3school.com.cn/xml/xml_intro.asp

例子1:先给出一个xml文件作为例子

<?xml version="1.0" encoding="UTF-8"?>
<!--
Date:2016/1/24
Writer:Wayne Ng
Theme:xml-basic1
-->
<cartoon>
<title>妖精的尾巴</title>
<author>真岛浩</author>
<style>少年漫画</style>
<mainCharacters>
<character id="1">
<name>艾特利亚斯‧纳兹‧多拉格尼尔 </name>
<age>400+</age>
<sex>男</sex>
<magic>火之灭龙魔法、雷炎龙模式</magic>
<info>男主角,火之灭龙魔导士,经常闯祸。</info>
</character>
<character id="2">
<name>露西·哈特菲利亚 </name>
<age>18</age>
<sex>女</sex>
<magic>星灵魔法</magic>
<info>女主角,故事的叙述者,原为富商千金,由于不满父亲离家出走。</info>
</character>
<character id="3">
<name>艾露莎·舒卡勒托 </name>
<age>26</age>
<sex>女</sex>
<magic>换装魔法(骑士)</magic>
<info>S级魔导士,被称为“妖精女王”,严守纪律、偶尔天然呆。</info>
</character>
<character id="4">
<name>格雷·佛尔帕斯塔 </name>
<age>18</age>
<sex>男</sex>
<magic>冰之造型魔法,冰之灭恶魔法</magic>
<info>冰之造型魔导士,有无意识的暴露癖,后成为灭恶魔导士</info>
</character>
</mainCharacters>
</cartoon>

例子2:针对上述的xml文件,使用两种方法(本质上一样,差别仅在于是否使用异步技术)来将xml文档中内容提取并显示于html文件中,将html文中中引用脚本名称改变即可改变读取xml文件方式,下面给出的fun1.js和fun2.js对应两种不同方式:

ex1.html文件:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>XML Basis-1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Wayne Ng" />
<meta name="description" content="XML-basis1" />
<meta name="revised" content="Wayne Ng, 2016/1/25" />
</head>
<body>
<button type = "button" onclick="loadXML('ex1.xml')">载入XML</button>
<div id = "text"></div>
<script type="text/javascript" src="func1.js"></script>
</body>
</html>

func1.js文件:

//利用XMLHttp Request来对XML文档中内容进行解析(此处使用异步处理即AJAX技术)
var xmlHttp;
function loadXML(url){
xmlHttp = null;
if(window.XMLHttpRequest){
//code for all new browsers
xmlHttp = new XMLHttpRequest();
}
else{
//code for IE5 and IE6
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlHttp != null){
xmlHttp.onreadystatechange=stateChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
} function stateChange(){
if(xmlHttp.readyState == 4){
if(xmlHttp.status == 200){
txt = "<table border='1'>";
x = xmlHttp.responseXML.getElementsByTagName("character");
for(var i = 0; i < x.length; ++i){
//get name element
var xx=x[i].getElementsByTagName("name");
try {
txt += "<tr><td colspan = '4'>" + xx[0].firstChild.nodeValue + "</td></tr>"
}
catch(er){
txt += "<td></td>"
}
txt += "<tr>";
//get age element
xx = x[i].getElementsByTagName("age");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get sex element
xx = x[i].getElementsByTagName("sex");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get magic element
xx = x[i].getElementsByTagName("magic");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get info element
xx = x[i].getElementsByTagName("info");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
txt += "</tr>";
}
document.getElementById("text").innerHTML = txt; }
else{
alert("Problem retrieving data:" + xmlHttp.statusText);
}
}
}

func2.js文件:

//利用XMLHttp Request来对XML文档中内容进行解析(此处不适用异步处理技术)
var xmlHttp;
function loadXML(url){
xmlHttp = null;
if(window.XMLHttpRequest){
//code for all new browsers
xmlHttp = new XMLHttpRequest();
}
else{
//code for IE5 and IE6
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttp.open("GET", url, false);
xmlHttp.send(null);
xmlDoc = xmlHttp.responseXML;
txt = "<table border='1'>";
x = xmlDoc.getElementsByTagName("character");
for(var i = 0; i < x.length; ++i){
//get name element
var xx=x[i].getElementsByTagName("name");
try {
txt += "<tr><td colspan = '4'>" + xx[0].firstChild.nodeValue + "</td></tr>"
}
catch(er){
txt += "<td></td>"
}
txt += "<tr>";
//get age element
xx = x[i].getElementsByTagName("age");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get sex element
xx = x[i].getElementsByTagName("sex");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get magic element
xx = x[i].getElementsByTagName("magic");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
//get info element
xx = x[i].getElementsByTagName("info");
try {
txt += "<td>" + xx[0].firstChild.nodeValue + "</td>"
}
catch(er){
txt += "<td></td>"
}
txt += "</tr>";
}
document.getElementById("text").innerHTML = txt;
}

显示效果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAykAAAEnCAIAAAAinZtkAAAgAElEQVR4nO2du+8lRZbn80+aQion7foXhgKHXSttnBLqQe3RLQaHRBgjWoXPrIOX6lG3xu/WqFe7GqFWp3AQBmJp7YOHUSDdNfJ1IuLEK9957+djQP3yEc8TEd84J+69xQ0AAAAA9qI4ugAAAAAADwTaCwAAAGA/0F4AAAAA+4H2AgAAANgPtBcAAADAfqC9AAAAAPYD7QUAAACwH2gvAAAAgP2wtdfHH3/8zjvvvH0XvPPOOx9//PEhzQoAAACgYmivf/7gg48++uibb7755S745ptvPvroo3/+4IOjGhcAAADAwtBeL168+Pbbb1+9evX/7oJXr159++23L168OKpxAQAAACwM7fX222//8ssvR0umNfnll1/efvvtoxoXAAAAwMLWXj///PP/vSN+/vlntBcAAACcB0V7/Z87Au0FAAAApwLtBQAAALAfivb63wn85bdP/+t/m/799Ld/+ctvnxZPf/sX97lifPAA0F4AAABwKmzt9erVq78H+I/fPC1Mnv7mX3/z9Olv/uPvf//73//1vxT9vwTqxb149eoV2gsAAADOg6K9vkvgz+89feuz4Y/P3nr63p/DD2sP/Pm9p0Vh3vjsre7KZ28VRVFMOfS3+qc/e6sIZziB9gIAAIBTkaW9/vye7fXScHTRn997agkpeWd8XPzRaS/xTp8z2gsAAACujaK9/leUP7339Ol7fxr//Oyt4q3Pgk8XT58ab1g33/uT+Eef4tP33ntrvPCn956Kvz+bbsRAewEAAMCpsLXXTz/99KWff//1a46b67Vff/rr19789Msvv/zy0zeL137978o7b3765advFt1DDp++Wbz25puvydtdQmNy6p+BYk789NNPaC8AAAA4D4r2aoP88d0nxRsv2z++++TJu3/sr71848m7fzQvjbx8o+iu6reHZ4o3Xrov9Xm9fKN446VIafxHHLQXAAAAnApFe/0txMvntt/r+cu//eHdJ8/fffdJ8fyl/fgf5NWXz5Un/va3l8+LJ0+eFMWTd/8gL737h/715/1rw8XpH3HQXgAAAHAqcrWXEFWmVipiykv5u780yqwxxUldvXxeiH+ivQAAAODa2Nrrxx9//GsK//ZPTwa/1+/++rvnRVE8+ad/6653//jrX3/3vCie/859bbhv/yn++N3zYkpFpNf9U9yN8eOPP6K9AAAA4Dwo2usLP7//1ZMp2PjkV7//4osvvvjk9aJ4/ZMvPnm9eP2TL7745PUnv/p9/2D/gMUnr/d3fv+rJ0Xx+id28k9+9fsvPnldeXm8+MnrRtDTSMIC7QUAAACnwtZeP/zww3+m0LzzD//wTvOf//KPxT+804yXiqLorxb/+C/Bl6fXNuWHH35AewEAAMB5mKu9LgLaCwAAAE6For3+5x2B9gIAAIBTYWuv77///n/cEd9//z3aCwAAAM6Dob1evHjx1Vdffffdd//9Lvjuu++++uqrFy9eHNW4AAAAABaG9vrggw8+/PDDr7/++vu74Ouvv/7www8/+OCDoxoXAAAAwKKw/n7//fdfvHjx9l3w4sWL999//5BmBQ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EYvpbtycWuDO5FnsewqHe/rbX72V1gOpRnZ5xhNmkXWxK5xT9cHmVWqdt7oY/on6vXFI3KfLxa89Ij8ZJxEyY02uvI1IAWAIWCJcn4PcCODeXmIHRXgArgwUCABzFJWZgtBfAymCBAABHcYkZWNFenx/N8mKcpCLwsGCBAABH0c3AF9NeAAAAAJcG7QUAAACwH9fQXs8AAAAA7oUD1VWYIv4IAAAAAKwE2gsAAABgP9BeAAAAAPuB9gIAAADYD7QXAAAAwH6gvQAAAAD2A+0FAAAAsB9oLwAAAID9QHsBAAAA7AfaCwAAAGA/0F4AAAAA+4H2AgAAANgPtBcAAADAfqC9AAAAAPYD7QUAAACwH2gvAAAAgP1AewEAAADsB9oLAAAAYD/QXgAAAAD7gfYCAAAA2A+0FwAAAMB+oL0AAAAA9gPtBQAAALAfaC8AAACA/UB7AQAAAOwH2gsAAABgP9BeAAAAAPuB9gIAAADYD7QXAAAAwH6gvQAAAAD2A+0FAAAAsB9oLwAAAID9QHsBAAAA7AfaCwAAAGA/0F4AAAAA+4H2AgAAANgPtBcAAADAfqC9AAAAAPYD7QUAAACwH2gvAAAAgP34/7gsUXvep6hfAAAAAElFTkSuQmCC" alt="" />

例子2:使用XML DOM技术提取xml文件中元素将其显示于html上(本质上和上一个例子差别不大),使用xml文件和开头给出的xml相同:

ex2.html文件:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>XML Basis-2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Wayne Ng" />
<meta name="description" content="XML-basis2" />
<meta name="revised" content="Wayne Ng, 2016/1/25" />
</head>
<body onload = "display()">
<div id = "text"></div>
<script type="text/javascript" src="func3.js"></script>
<button type = "button" onclick = "prev()">&lt;&lt;前一项</button>
<button type = "button" onclick = "next()">后一项&gt;&gt;</button>
</body>
</html>

func3.js文件:

if(window.XMLHttpRequest){
//code for IE7+, Firefox, Chrome, Opera, Safari
var xmlHttp = new XMLHttpRequest();
}
else{
//code for IE6, IE5
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttp.open("GET", "ex1.xml", false);
xmlHttp.send(null);
var xmlDoc = xmlHttp.responseXML; var content = xmlDoc.getElementsByTagName("character");
var i = 0;
function display(){
var name = content[i].getElementsByTagName("name")[0].childNodes[0].nodeValue;
var age = content[i].getElementsByTagName("age")[0].childNodes[0].nodeValue;
var sex = content[i].getElementsByTagName("sex")[0].childNodes[0].nodeValue;
var magic = content[i].getElementsByTagName("magic")[0].childNodes[0].nodeValue;
var info = content[i].getElementsByTagName("info")[0].childNodes[0].nodeValue;
var txt = "Name: " + name + "<br />age: " + age + "<br />sex: " + sex + "<br />sex: " + sex + "<br />magic: " + magic + "<br />info: " + info + "<br />";
document.getElementById("text").innerHTML = txt;
} //查找前一项
function prev(){
if(i > 0){
--i;
display();
}
else{
alert("已到达第一项!");
}
} //查找后一项
function next(){
if(i < content.length - 1){
++i;
display();
}
else{
alert("已到达最后一项!");
}
}

显示效果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXMAAACnCAIAAABsACtIAAAVxElEQVR4nO2dO4/ethKG9ZOyBrbR/0jWbpxUqt0sFvHCnRM421iGiyDBunfyA4QYNtw7CHJwDg6CgwhpDBeG4+BcfCnWBr5TSKI45MyQlKjvtu/T2KsLLyPy1ZAU5ytWAACQm2LTBQAA7CFQFgBAfqAsAID8QFkAAPmBsgAA8gNlAQDkB8oCAMgPlAUAkJ+9UJa2LouqoX+Xdbu5Aq0FvpZNVRBb7AR+VXayGsDisimLe+lqtVqtmkoXorYuix733tCtgVKP93IJNVVRFIWQQVOxZ/QuyRY3UYibSiyTnWKKld0StHW5gLBcjhfOtsAry9CVvIfb1mWoVa2HvtNFUjVDa49u8yQD56x1vfmvpT4h+nsFZSEJVc1qtWpbxt6SgqjK0rZtV7HxCkGgJCJkZSUoi6IXTp/nH+54QZS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RVM6oCxgIURleffu3b+S+P6oOPo+dOrRzQProv74o5sHBzcfjf/GZ1gUBc300c1OueLSeffunaIsIQt8f1SIxU6sSkJdoswcjWIBAOagKctv+fnpy4PPvjN/ffdZYf31209fHhx8+dOctIuiT/C7z4qiCCYWVBbtZlP4Ll9/NDSjKhPqMg0oC1gIUVnevn37z/w0J598+m33b1EURfHJSWP91f85KVnm5m8/DST49u1bRVl0C3z76ZB2c/KJlw13LJKJdZmGYgEA5rBmZdku5ijLfgBlAQuhKcs/9p2gsmy6gIsDZQELISrLmzdv/r7vvHnzRlGWS24BAOYgxsF9/vz569ev/7a/vH79+vnz50oc3EtuAQDmwCvL2dnZ3bt3X7x48WZ/efHixd27d8+EyPWwAABzEH9v6M6dO8fHx9N+yGYnOD4+vnPnjmIaWACAyeA3EgEA+YGyAADyA2UBAOQHygIAyA+UBQCQHygLACA/UBYAQH6gLACA/EBZAAD5+T/7rNHDDVfOBAAAAABJRU5ErkJggg==" alt="" />

    2016/1/25修订  By野马菌

自学xml的几个例子的更多相关文章

  1. java操作xml的一个小例子

    最近两天公司事比较多,这两天自己主要跟xml打交道,今天更一下用java操作xml的一个小例子. 原来自己操作xml一直用这个包:xstream-1.4.2.jar.然后用注解的方式,很方便,自己只要 ...

  2. 自学XML DOM的几个例子

    XML DOM定义了如何获取.修改.添加和删除XML文件中结点的接口,极大方便了开发者对XML文件的使用.XML DOM教程和手册请转:http://www.w3school.com.cn/xmldo ...

  3. spring源码学习之:xml标签扩展配置例子

    在很多情况下,我们需要为系统提供可配置化支持,简单的做法可以直接基于Spring的标准Bean来配置,但配置较为复杂或者需要更多丰富控制的 时候,会显得非常笨拙.一般的做法会用原生态的方式去解析定义好 ...

  4. 自学php的几个例子(包含AMP(Apache、MySQL、PHP)环境搭建链接)

    学习PHP之前需要先搭建PHP运行的环境(即服务器+PHP+数据库)来使PHP成功运行,具体环境搭建教程可参考pharen(http://www.cnblogs.com/pharen/archive/ ...

  5. 自学Xpath的几个例子

    Xpath可以对XML文件中的信息进行查找,并对XML文件树形结构进行遍历.详细语法请转:http://www.w3school.com.cn/xpath/index.asp 例子:利用在JavaSc ...

  6. 自学XSL的几个例子

    XSL 指扩展样式表语言(EXtensible Stylesheet Language).XSL用来描述XML文件的格式,类似于我们可以用CSS描述HTML的格式.具体用法请转:http://www. ...

  7. Java四种读取和创建XML文档的例子教程

    四种方法解析XML文档:Dom.SAX.JDOM.dom4j          1.了解XML XML,即可扩展标记语言(Extensible Markup Language),标准通用标记语言的子集 ...

  8. 自学HTML的几个例子

    此处不赘述HTML中不同标签的用法仅仅给出自己学习时写的一些自娱自乐的例子,具体标签用法请参考W3C(http://www.w3school.com.cn/),毕竟这个才是最靠谱的,请不要相信任何二道 ...

  9. 自学JavaScript的几个例子

    学习了广泛使用的浏览器脚本JavaScript和HTML的DOM模型(也是用JavaScript实现),下面给出两个自己学习时的例子,具体JavaScript语法请参考W3C相关网页(http://w ...

随机推荐

  1. 第52周四ApplicationContext

    ApplicationContext的中文意思是"应用前后关系"应用上下文即容器,它继承自BeanFactory接口,除了包含BeanFactory的所有功能之外,在国际化支持.资 ...

  2. mysql主从同步错误解决和Slave_IO_Running: NO

    1.出现错误提示. Slave I/O: error connecting to master 'backup@192.168.1.x:3306' - retry-time: 60  retries: ...

  3. poj3094---对字符串的处理

    #include <stdio.h> #include <stdlib.h> #include<string.h> int main() { ]; int len, ...

  4. LightOJ 1085(树状数组+离散化+DP,线段树)

    All Possible Increasing Subsequences Time Limit:3000MS     Memory Limit:65536KB     64bit IO Format: ...

  5. C++隐式转换

    #include <iostream> using namespace std; class A { int a; public: A(int n):a(n) { cout << ...

  6. C#中的枚举类型

    浅谈C#中的枚举  转自http://www.cnblogs.com/liyingyi/archive/2005/12/28/306772.aspx   枚举类型是一种的值类型,它用于声明一组命名的常 ...

  7. C#中的USB库 WinUSB

    NET C#中的USB库WinUSB,的libusb - Win32和的libusb - 1.0.使用公共设备类,应用程序与所有未经修改的操作系统和驱动程序.大量的示例代码. http://sourc ...

  8. Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool

    原因:缺少commons-pool-X.jar包,到http://commons.apache.org/proper/commons-pool/download_pool.cgi下载后引入即可(地址可 ...

  9. PHP性能如何实现全面优化?

    性能是网站运行是否良好的关键因素, 网站的性能与效率影响着公司的运营成本及长远发展,编写出高质高效的代码是我们每个开发人员必备的素质,也是我们良好的职业素养. 如何优化PHP性能呢? 一.变量(重要) ...

  10. IOS优秀博客

    链接地址:http://www.cnblogs.com/keithmoring/p/4155264.html 剑心的博客信息量很大,适合查阅和入门,学习完,你差不多就可以出山了,还有作为复习IOS的一 ...