最火下载站首页
手机版
最火下载站
关注公众号
最火下载站

当前位置:首页 > 网络知识 > Web前端 > Html/css> 实例代码:用html语言显示xml中的数据

实例代码:用html语言显示xml中的数据

文章作者:网友投稿 发布时间:2008-12-28 来源:网络

烈火建站网(LieHuo.Net)实例代码:用html语言显示xml中的数据。

烈火建站学院(LieHuo.Net)实例代码:用html语言显示xml中的数据。

1.将下面文件存为myfile.dtd




2.然后建立XML文档myfile.xml:




XML轻松学习手册
ajie

3.建立HTML文档myfile.html



在HTML中调用XML数据 </font>www.veryhuo.com</title</font><font color="#000000">><br /></head><br /><body bgcolor="#FFFFFF"><br /><b>标题: </b><br /><span id="title"></span><br><br /><b>作者: </b><br /><span id="author"></span><br><br /></body><br /></html></font></td> </tr> </tbody> </table> </p> <!-- <div class="more"><a href="/post.2059720.html">...</a></div> --></div> </div> <!-- 上一篇和下一篇 --> <div style="color:red;margin-top:30px"> <p style="height: 30px;">上一篇: <a href="/a/view/4019.html" title="">〈html:image〉与〈html:img〉的区别</a> </p> <p style="height: 30px;">下一篇: <a href="/a/view/4047.html" title="">教你如何把HTML+CSS通过W3C的测试</a> </p> </div> </div> <!--最新资讯--> <div class="m-pd newZX"> <h2 class="mr-title">最新资讯</h2> <div class="CSoftType"> <div class="tab-cont-item" style="display: block;"> <ul> <li> <a class="AT2" href="/a/view/229393.html" target="_blank">1999元起步的5G手机红米K30已经来了,那么红米K30 Pro什么时候发布呢?</a> <time>2019-12-10</time> </li> <li> <a class="AT2" href="/a/view/229281.html" target="_blank">红米 k30新品发布会于今天下午举行,让我们一起期待雷大大带给我们带来的好消息吧!</a> <time>2019-12-10</time> </li> <li> <a class="AT2" href="/a/view/229187.html" target="_blank">丁俊晖英锦赛夺冠,让我们一起来看看他的精彩表现!</a> <time>2019-12-10</time> </li> <li> <a class="AT2" href="/a/view/228867.html" target="_blank">2019即将过去,让我们回顾一下今年那些走红网络的流行词,一起来涨涨姿势!</a> <time>2019-12-06</time> </li> <li> <a class="AT2" href="/a/view/228700.html" target="_blank">元旦小长假了变成一天了?一起来看看2020年放假安排吧!</a> <time>2019-12-06</time> </li> <li> <a class="AT2" href="/a/view/228551.html" target="_blank">支付宝生活费当家导师怎么找?支付宝生活费怎么领?</a> <time>2019-12-05</time> </li> <li> <a class="AT2" href="/a/view/228626.html" target="_blank">辅导孩子的作业的你是否已经濒临崩溃?小编来给你支个招!</a> <time>2019-12-05</time> </li> <li> <a class="AT2" href="/a/view/228438.html" target="_blank">“全民拼车日”来啦!滴滴倡导绿色出行,拼车1折,今天你拼车了吗?</a> <time>2019-12-04</time> </li> <li> <a class="AT2" href="/a/view/227192.html" target="_blank">ios 13 BUG太多?苹果正改变 ios 14开发方式</a> <time>2019-11-22</time> </li> <li> <a class="AT2" href="/a/view/227074.html" target="_blank">央视频正式上线!央视频app是什么平台?</a> <time>2019-11-21</time> </li> </ul> </div> </div> </div> <!--最新资讯end--> <!--游戏专题--> <div class="m-pd"> <h2 class="mr-title">游戏专题</h2> <div class="ztBox"> <ul class="ztLists"> <li> <a href="/z/chongwu_yangcheng_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20191219/1f66ed9200bea4468d34cc5ed02e5f2a.jpg" alt="宠物养成手游推荐"> <s></s> <strong>宠物养成手游推荐</strong> </a> </li> <li> <a href="/z/monijiashi_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20191218/d40850ceec0c2a6832abcf3ffa97772d.jpg" alt="模拟驾驶手游推荐"> <s></s> <strong>模拟驾驶手游推荐</strong> </a> </li> <li> <a href="/z/RPG_guofeng_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20191218/446560daa7a0d42e3431706b77a22b0d.png" alt="RPG国风手游"> <s></s> <strong>RPG国风手游</strong> </a> </li> <li> <a href="/z/sheji_shengcun_youxi/"> <img src="//pic.veryhuo.com/upload/spec/20191218/8452a5cc2d7ce64df867915945e0b231.jpg" alt="射击生存游戏大全"> <s></s> <strong>射击生存游戏大全</strong> </a> </li> </ul> </div> </div> <!--游戏专题end--> <!--网友评论--> <div class="m-pd "> <input type="hidden" value="4042" id="aid"> <h5 class="mr-title"><span class="f-r count">共有<i class="num">0</i>条评论</span>网友评论 </h5> <div class="pl-box" data-id="168613" data-model="document"> <form> <div class="pl-t"> <textarea class="pl-txta" placeholder="简单评论下吧..." id="saytext" name="saytext"></textarea> </div> <div class="pl-cz"> <span class="emotion express f-l"></span> <input type="button" value="评论" class="pl-btn f-r" /> </div> </form> </div> <div class="pl_cont"> </div> </div> <!--网友评论end--> </div> <!-- 内容右侧 --> <div class="m-r f-r"> <!-- 安卓最新 --> <div class="sbox"> <h5 class="mr-title">最新安卓软件</h5> <ul class="list"> <li> <span class="num">1</span> <a href="/down/html/230161.html" class="txt">夜女郎直播 v1.0 安卓版</a> </li> <li> <span class="num">2</span> <a href="/down/html/230169.html" class="txt">圣斗士星矢重生 v4.0.0 安卓版</a> </li> <li> <span class="num">3</span> <a href="/down/html/230170.html" class="txt">闪电传送 v8.69 安卓版</a> </li> <li> <span class="num">4</span> <a href="/down/html/230178.html" class="txt">杰克豆 v1.0.5.102 安卓版</a> </li> <li> <span class="num">5</span> <a href="/down/html/230756.html" class="txt">未上锁的房间1 v3.5 安卓版</a> </li> <li> <span class="num">6</span> <a href="/down/html/230754.html" class="txt">美夕直播 v5.1 安卓版</a> </li> <li> <span class="num">7</span> <a href="/down/html/230757.html" class="txt">海滨消消乐 v 1.4.1 安卓版</a> </li> <li> <span class="num">8</span> <a href="/down/html/230735.html" class="txt">果聊直播 v3.4.0 安卓版</a> </li> <li> <span class="num">9</span> <a href="/down/html/230743.html" class="txt">以太狗 v3.0.5301 安卓版</a> </li> <li> <span class="num">10</span> <a href="/down/html/230734.html" class="txt">大航海时代5 v4.16.0 安卓版</a> </li> <li> <span class="num">11</span> <a href="/down/html/230727.html" class="txt">松鼠记账 v5.0.2 安卓版</a> </li> <li> <span class="num">12</span> <a href="/down/html/230748.html" class="txt">爆米花电影 v1.8.3 安卓版</a> </li> <li> <span class="num">13</span> <a href="/down/html/230627.html" class="txt">DNF助手 v 2.9.0.45 安卓版</a> </li> <li> <span class="num">14</span> <a href="/down/html/230600.html" class="txt">天天酷跑视频站 v1.1 安卓版</a> </li> <li> <span class="num">15</span> <a href="/down/html/230716.html" class="txt">壁纸喵 v1.1.18 安卓版</a> </li> </ul> </div> <!--排行榜--> <div class="sbox a-detail-rank"> <h5 class="mr-title">游戏排行榜</h5> <dl class="rank-main"> <dd> <ul> <li> <div class="show"> <em class="nub">1</em> <a href="/down/html/230169.html" title="圣斗士星矢重生" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191217/28bcece4681fa49e0ea4ee4b19cf5fb3.png" alt="圣斗士星矢重生"></a> <div class="info"> <a href="/down/html/230169.html" target="_blank" title="圣斗士星矢重生">圣斗士星矢重生</a> <span class="cata">类型:网游专区</span> </div> </div> <div class="hide"> <em class="nub">1</em> <a href="/down/html/230169.html" target="_blank" title="圣斗士星矢重生">圣斗士星矢重生 v4.0.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">2</em> <a href="/down/html/230756.html" title="未上锁的房间1" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191221/8d82c9c1d03366f7baa4e048f356bec6.jpg" alt="未上锁的房间1"></a> <div class="info"> <a href="/down/html/230756.html" target="_blank" title="未上锁的房间1">未上锁的房间1</a> <span class="cata">类型:冒险解谜</span> </div> </div> <div class="hide"> <em class="nub">2</em> <a href="/down/html/230756.html" target="_blank" title="未上锁的房间1">未上锁的房间1 v3.5 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">3</em> <a href="/down/html/230757.html" title="海滨消消乐" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191221/4bf55a545a24b2d5d51834c85dc9300e.png" alt="海滨消消乐"></a> <div class="info"> <a href="/down/html/230757.html" target="_blank" title="海滨消消乐">海滨消消乐</a> <span class="cata">类型:塔防消除</span> </div> </div> <div class="hide"> <em class="nub">3</em> <a href="/down/html/230757.html" target="_blank" title="海滨消消乐">海滨消消乐 v 1.4.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">4</em> <a href="/down/html/230734.html" title="大航海时代5" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191221/27832a52b3572c8c06b492a248dc2041.png" alt="大航海时代5"></a> <div class="info"> <a href="/down/html/230734.html" target="_blank" title="大航海时代5">大航海时代5</a> <span class="cata">类型:塔防消除</span> </div> </div> <div class="hide"> <em class="nub">4</em> <a href="/down/html/230734.html" target="_blank" title="大航海时代5">大航海时代5 v4.16.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">5</em> <a href="/down/html/230627.html" title="DNF助手" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/0c1e03cbbc9f2c91042f374307fba4da.png" alt="DNF助手"></a> <div class="info"> <a href="/down/html/230627.html" target="_blank" title="DNF助手">DNF助手</a> <span class="cata">类型:手游辅助</span> </div> </div> <div class="hide"> <em class="nub">5</em> <a href="/down/html/230627.html" target="_blank" title="DNF助手">DNF助手 v 2.9.0.45 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">6</em> <a href="/down/html/230600.html" title="天天酷跑视频站" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/46a0684ffd7adec85cb568ee55a4d854.png" alt="天天酷跑视频站"></a> <div class="info"> <a href="/down/html/230600.html" target="_blank" title="天天酷跑视频站">天天酷跑视频站</a> <span class="cata">类型:手游辅助</span> </div> </div> <div class="hide"> <em class="nub">6</em> <a href="/down/html/230600.html" target="_blank" title="天天酷跑视频站">天天酷跑视频站 v1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">7</em> <a href="/down/html/230712.html" title="欢乐摇钱树" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191221/d740e790aab28970381dc86937a6ff46.png" alt="欢乐摇钱树"></a> <div class="info"> <a href="/down/html/230712.html" target="_blank" title="欢乐摇钱树">欢乐摇钱树</a> <span class="cata">类型:模拟经营</span> </div> </div> <div class="hide"> <em class="nub">7</em> <a href="/down/html/230712.html" target="_blank" title="欢乐摇钱树">欢乐摇钱树 v1.2.5 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">8</em> <a href="/down/html/230673.html" title="DNF男格斗裸身盒子头补丁" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/f1f1d81695173bff24eb47e5e6271994.jpg" alt="DNF男格斗裸身盒子头补丁"></a> <div class="info"> <a href="/down/html/230673.html" target="_blank" title="DNF男格斗裸身盒子头补丁">DNF男格斗裸身盒子头补丁</a> <span class="cata">类型:存档补丁</span> </div> </div> <div class="hide"> <em class="nub">8</em> <a href="/down/html/230673.html" target="_blank" title="DNF男格斗裸身盒子头补丁">DNF男格斗裸身盒子头补丁 v1.0.2 中文版</a> </div> </li> <li> <div class="show"> <em class="nub">9</em> <a href="/down/html/230665.html" title="璀璨星途" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/b3280cbb620cf53e026a7d029aa9231d.png" alt="璀璨星途"></a> <div class="info"> <a href="/down/html/230665.html" target="_blank" title="璀璨星途">璀璨星途</a> <span class="cata">类型:塔防消除</span> </div> </div> <div class="hide"> <em class="nub">9</em> <a href="/down/html/230665.html" target="_blank" title="璀璨星途">璀璨星途 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">10</em> <a href="/down/html/230689.html" title="欢乐跳房子" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/418a08bf131dc7add7e31e800888fd3e.png" alt="欢乐跳房子"></a> <div class="info"> <a href="/down/html/230689.html" target="_blank" title="欢乐跳房子">欢乐跳房子</a> <span class="cata">类型:音乐游戏</span> </div> </div> <div class="hide"> <em class="nub">10</em> <a href="/down/html/230689.html" target="_blank" title="欢乐跳房子">欢乐跳房子 v1.1.4 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">11</em> <a href="/down/html/230679.html" title="绝世秘境" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/dc02a3a5d24cc410210d0e4a9e2988cc.jpg" alt="绝世秘境"></a> <div class="info"> <a href="/down/html/230679.html" target="_blank" title="绝世秘境">绝世秘境</a> <span class="cata">类型:冒险解谜</span> </div> </div> <div class="hide"> <em class="nub">11</em> <a href="/down/html/230679.html" target="_blank" title="绝世秘境">绝世秘境 v1.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">12</em> <a href="/down/html/230629.html" title="乐高棋牌" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/a9a98a19e91db23805ebbfe30849154c.png" alt="乐高棋牌"></a> <div class="info"> <a href="/down/html/230629.html" target="_blank" title="乐高棋牌">乐高棋牌</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">12</em> <a href="/down/html/230629.html" target="_blank" title="乐高棋牌">乐高棋牌 v4.0.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">13</em> <a href="/down/html/230661.html" title="网娱棋牌" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/cc148c9dd8e9fa49f5962da2d1bbe212.jpg" alt="网娱棋牌"></a> <div class="info"> <a href="/down/html/230661.html" target="_blank" title="网娱棋牌">网娱棋牌</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">13</em> <a href="/down/html/230661.html" target="_blank" title="网娱棋牌">网娱棋牌 v1.1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">14</em> <a href="/down/html/230649.html" title="喜迎棋牌" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/e87bb9d8dfbd76850f2f4e598d171a5a.jpg" alt="喜迎棋牌"></a> <div class="info"> <a href="/down/html/230649.html" target="_blank" title="喜迎棋牌">喜迎棋牌</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">14</em> <a href="/down/html/230649.html" target="_blank" title="喜迎棋牌">喜迎棋牌 v1.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">15</em> <a href="/down/html/230685.html" title="闲来十三水" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191220/6a6288417d443ea1fd689abfc2a1ebd9.jpg" alt="闲来十三水"></a> <div class="info"> <a href="/down/html/230685.html" target="_blank" title="闲来十三水">闲来十三水</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">15</em> <a href="/down/html/230685.html" target="_blank" title="闲来十三水">闲来十三水 v4.6.3 安卓版</a> </div> </li> </ul> </dd> </dl> </div> <!--排行榜end--> <!--热荐资讯--> <div class="sbox"> <h5 class="mr-title">热荐资讯</h5> <ul class="list"> <li> <span class="num">1</span> <a href="/a/view/161114.html" class="txt">快手直播伴侣苹果版安装说明</a> </li> <li> <span class="num">2</span> <a href="/a/view/161128.html" class="txt">快手直播伴侣苹果ios版使用教程</a> </li> <li> <span class="num">3</span> <a href="/a/view/201110.html" class="txt">趣步链赚钱是真的假的 趣步是合法的吗</a> </li> <li> <span class="num">4</span> <a href="/a/view/154287.html" class="txt">TeamViewer获取注册码(激活许可证)方法</a> </li> <li> <span class="num">5</span> <a href="/a/view/192230.html" class="txt">快手时光机怎么用 快手时光机在哪里</a> </li> <li> <span class="num">6</span> <a href="/a/view/172638.html" class="txt">腾讯视频会员免费领七天教程</a> </li> <li> <span class="num">7</span> <a href="/a/view/103081.html" class="txt">税控开票软件金税盘版使用教程与常见问题</a> </li> <li> <span class="num">8</span> <a href="/a/view/188598.html" class="txt">2018哪个APP看书最全免费 看小说的APP哪个好</a> </li> <li> <span class="num">9</span> <a href="/a/view/122830.html" class="txt">交管12123取消考试操作方法</a> </li> <li> <span class="num">10</span> <a href="/a/view/122826.html" class="txt">交管12123app预约考试图文教程</a> </li> <li> <span class="num">11</span> <a href="/a/view/122017.html" class="txt">不用手机号码怎么注册微信号</a> </li> <li> <span class="num">12</span> <a href="/a/view/182826.html" class="txt">热点资讯是哪个软件的 怎么卸载</a> </li> <li> <span class="num">13</span> <a href="/a/view/183415.html" class="txt">微信红包能撤回吗 微信红包撤回方法</a> </li> <li> <span class="num">14</span> <a href="/a/view/122823.html" class="txt">交管12123 app下载安装与注册教程</a> </li> <li> <span class="num">15</span> <a href="/a/view/161126.html" class="txt">快手直播伴侣电脑版使用说明</a> </li> </ul> </div> <!--热荐资讯end--> </div> </div> </div> <!-- 底部 --> <!--底部--> <div id="footer"> <div class="bottomText greena"> <a href="/help/guanyu.html" rel="nofollow" target="_blank">关于本站</a> | <a href="/help/mianze.html" rel="nofollow" target="_blank">版权声明</a> | <a href="/sitemap.html" target="_blank">网站地图</a> </div> <p class="tips_text" style="line-height: 24px;margin-top: 8px;"> <span style="margin-bottom: -24px;">Copyright © 2011-2019 最火软件站(www.veryhuo.com).All Rights Reserved</span> <br> <span>备案编号:<a href="http://www.beian.miit.gov.cn/" target="_balnk" style="text-decoration:none">蜀ICP备19014760号-2</a>,版权投诉请发邮件到341261131#qq.com(请将#换成@),我们会尽快处理</span> <br> <span>本站资源均收集整理于互联网,其著作权归原作者所有,如果有侵犯您权利的资源,请来信告知,我们将及时撤销相应资源</span> <br> <span>温馨提示:抵制不良游戏 拒绝盗版游戏 注意自我保护 谨防受骗上当 适度游戏益脑 沉迷游戏伤身 合理安排时间 享受健康生活</span> </p> <div class="wxewm"> <img src="/static/images/gzhewm.jpg" alt="最火软件站" style="width: 100px; height: 100px;"> <p>关注公众号</p> </div> </div> <!--回到顶部按钮--> <div class="backtop"><span></span></div> <script src="/static/js/jquery.js"></script><script src="/static/js/home/common.js"></script> <script src="/static/js/home/swiper.min.js"></script> <script src="/static/js/home/article.js"></script> </body> </html>