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

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

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

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

烈火建站网(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/16753.html" target="_blank">HTML 简史 - HTML Web 标记语言发展简史</a> <time>2010-05-15</time> </li> </ul> </div> </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/325552.html" target="_blank">蚂蚁庄园5月9日答案最新!我国古人常用哪种植物象征母爱</a> <time>2021-05-08</time> </li> <li> <a class="AT2" href="/a/view/325204.html" target="_blank">蚂蚁庄园5月8日答案最新!商女不知亡国恨用的是哪个朝代的典故</a> <time>2021-05-07</time> </li> <li> <a class="AT2" href="/a/view/325052.html" target="_blank">微软为招募开发者,不择手段降低游戏商店的抽成来达到目的</a> <time>2021-05-07</time> </li> <li> <a class="AT2" href="/a/view/324799.html" target="_blank">MIUI可能更新加入内存扩展功能以此来提升软件流畅性</a> <time>2021-05-06</time> </li> <li> <a class="AT2" href="/a/view/324563.html" target="_blank">蚂蚁庄园5月1日答案最新!苏州园林中被誉为中国园林之母的是</a> <time>2021-05-02</time> </li> <li> <a class="AT2" href="/a/view/324221.html" target="_blank">蚂蚁庄园4月30日答案最新!左牵黄右擎苍中苍是指哪种动物</a> <time>2021-04-29</time> </li> <li> <a class="AT2" href="/a/view/323970.html" target="_blank">蚂蚁庄园4月29日答案最新!下列词牌名中含有人物的是</a> <time>2021-04-28</time> </li> <li> <a class="AT2" href="/a/view/323550.html" target="_blank">蚂蚁庄园4月28日答案最新!落霞与孤鹜齐飞写的是哪一座名楼</a> <time>2021-04-27</time> </li> <li> <a class="AT2" href="/a/view/323411.html" target="_blank">蚂蚁庄园4月27日答案最新!鼓浪屿的得名主要因为</a> <time>2021-04-27</time> </li> <li> <a class="AT2" href="/a/view/323027.html" target="_blank">蚂蚁庄园4月24日答案最新!鼓浪屿的得名主要因为</a> <time>2021-04-24</time> </li> </ul> </div> </div> </div> <!--最新资讯end--> <!--游戏专题--> <div class="m-pd"> <h2 class="mr-title">游戏专题</h2> <a class="zt_more" href="/z/class/611_1.html" target="_blank">更多</a> <div class="ztBox"> <ul class="ztLists"> <li> <a href="/z/bsyl/"> <img src="//pic.veryhuo.com/upload/spec/20210506/1b87314e212a02286b261ad10ce194ef.jpg" alt="宝石娱乐所有版本"> <s></s> <strong>宝石娱乐所有版本</strong> </a> </li> <li> <a href="/z/yqby/"> <img src="//pic.veryhuo.com/upload/spec/20210506/a866f59d47f4e3efea7a719b643ac6d1.jpg" alt="一起捕鱼所有版本"> <s></s> <strong>一起捕鱼所有版本</strong> </a> </li> <li> <a href="/z/byzmr/"> <img src="//pic.veryhuo.com/upload/spec/20210430/4961da43a9c4b8792eca8ff6a454fce2.jpg" alt="捕鱼掌门人游戏合集"> <s></s> <strong>捕鱼掌门人游戏合集</strong> </a> </li> <li> <a href="/z/lzddz/"> <img src="//pic.veryhuo.com/upload/spec/20210430/f39e821e853278bdc15b6b82ab7128ed.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="/youxi/325249.html" class="txt">鱼丸深海狂鲨游戏 v8.0.1 安卓版</a> </li> <li> <span class="num">2</span> <a href="/youxi/325229.html" class="txt">电子基盘麻将无限币 v1.0 安卓版</a> </li> <li> <span class="num">3</span> <a href="/down/html/325273.html" class="txt">小太阳直播官网 v1.0 安卓版</a> </li> <li> <span class="num">4</span> <a href="/down/html/325255.html" class="txt">皮卡丘直播 v1.0 安卓版</a> </li> <li> <span class="num">5</span> <a href="/down/html/325732.html" class="txt">Soga酥瓜最新手机版 v1.0 安卓版</a> </li> <li> <span class="num">6</span> <a href="/down/html/325158.html" class="txt">昆仑棋牌破解 v1.0 安卓版</a> </li> <li> <span class="num">7</span> <a href="/down/html/325141.html" class="txt">比特棋牌老版 v4.3.2 安卓版</a> </li> <li> <span class="num">8</span> <a href="/down/html/325641.html" class="txt">晒码汇青龙报 v1.0.2 安卓版</a> </li> <li> <span class="num">9</span> <a href="/down/html/325356.html" class="txt">3d走势图(带连线专业版) v3.0.0 安卓版</a> </li> <li> <span class="num">10</span> <a href="/down/html/325342.html" class="txt">彩库宝典香港官方app v1.1 安卓版</a> </li> <li> <span class="num">11</span> <a href="/down/html/325340.html" class="txt">香港最准最快免费资料 v1.1 安卓版</a> </li> <li> <span class="num">12</span> <a href="/down/html/325515.html" class="txt">小雷达定位找人 v1.0.3 安卓版</a> </li> <li> <span class="num">13</span> <a href="/down/html/325287.html" class="txt">澳门今晚开特马+开奖结果资料2021 v1.1 安卓版</a> </li> <li> <span class="num">14</span> <a href="/down/html/325283.html" class="txt">118彩色厍图库118论坛历史图库 v1.0.2 安卓版</a> </li> <li> <span class="num">15</span> <a href="/down/html/325221.html" class="txt">新版二四六每期资料 v1.6.2 安卓版</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/325158.html" title="昆仑棋牌破解" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210507/549079156cbba206c443bb0997c82093.png" alt="昆仑棋牌破解"></a> <div class="info"> <a href="/down/html/325158.html" target="_blank" title="昆仑棋牌破解">昆仑棋牌破解</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">1</em> <a href="/down/html/325158.html" target="_blank" title="昆仑棋牌破解">昆仑棋牌破解 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">2</em> <a href="/down/html/325141.html" title="比特棋牌老版" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210507/6dffd36ccf4741cda7abfcb7c2e3d5b8.png" alt="比特棋牌老版"></a> <div class="info"> <a href="/down/html/325141.html" target="_blank" title="比特棋牌老版">比特棋牌老版</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">2</em> <a href="/down/html/325141.html" target="_blank" title="比特棋牌老版">比特棋牌老版 v4.3.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">3</em> <a href="/down/html/325641.html" title="晒码汇青龙报" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇青龙报"></a> <div class="info"> <a href="/down/html/325641.html" target="_blank" title="晒码汇青龙报">晒码汇青龙报</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">3</em> <a href="/down/html/325641.html" target="_blank" title="晒码汇青龙报">晒码汇青龙报 v1.0.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">4</em> <a href="/down/html/325356.html" title="3d走势图(带连线专业版)" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210326/3c5d1cc8d2d6a6cffcd915b26fae05a5.jpg" alt="3d走势图(带连线专业版)"></a> <div class="info"> <a href="/down/html/325356.html" target="_blank" title="3d走势图(带连线专业版)">3d走势图(带连线专业版)</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">4</em> <a href="/down/html/325356.html" target="_blank" title="3d走势图(带连线专业版)">3d走势图(带连线专业版) v3.0.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">5</em> <a href="/down/html/325342.html" title="彩库宝典香港官方app" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210422/7b6112cbcdb81999adbb9df5ccbe8cb0.png" alt="彩库宝典香港官方app"></a> <div class="info"> <a href="/down/html/325342.html" target="_blank" title="彩库宝典香港官方app">彩库宝典香港官方app</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">5</em> <a href="/down/html/325342.html" target="_blank" title="彩库宝典香港官方app">彩库宝典香港官方app v1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">6</em> <a href="/down/html/325616.html" title="晒码汇绿财神" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇绿财神"></a> <div class="info"> <a href="/down/html/325616.html" target="_blank" title="晒码汇绿财神">晒码汇绿财神</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">6</em> <a href="/down/html/325616.html" target="_blank" title="晒码汇绿财神">晒码汇绿财神 v1.0.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">7</em> <a href="/down/html/325340.html" title="香港最准最快免费资料" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210422/7b6112cbcdb81999adbb9df5ccbe8cb0.png" alt="香港最准最快免费资料"></a> <div class="info"> <a href="/down/html/325340.html" target="_blank" title="香港最准最快免费资料">香港最准最快免费资料</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">7</em> <a href="/down/html/325340.html" target="_blank" title="香港最准最快免费资料">香港最准最快免费资料 v1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">8</em> <a href="/down/html/325697.html" title="晒码汇平特乾坤卦" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇平特乾坤卦"></a> <div class="info"> <a href="/down/html/325697.html" target="_blank" title="晒码汇平特乾坤卦">晒码汇平特乾坤卦</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">8</em> <a href="/down/html/325697.html" target="_blank" title="晒码汇平特乾坤卦">晒码汇平特乾坤卦 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">9</em> <a href="/down/html/325287.html" title="澳门今晚开特马+开奖结果资料2021" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210423/ec453acaac0112508acf142a1a4e8de0.jpg" alt="澳门今晚开特马+开奖结果资料2021"></a> <div class="info"> <a href="/down/html/325287.html" target="_blank" title="澳门今晚开特马+开奖结果资料2021">澳门今晚开特马+开奖结果资料2021</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">9</em> <a href="/down/html/325287.html" target="_blank" title="澳门今晚开特马+开奖结果资料2021">澳门今晚开特马+开奖结果资料2021 v1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">10</em> <a href="/down/html/325612.html" title="晒码汇香港挂牌" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇香港挂牌"></a> <div class="info"> <a href="/down/html/325612.html" target="_blank" title="晒码汇香港挂牌">晒码汇香港挂牌</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">10</em> <a href="/down/html/325612.html" target="_blank" title="晒码汇香港挂牌">晒码汇香港挂牌 v1.0.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">11</em> <a href="/down/html/325587.html" title="晒码汇高清跑狗图" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇高清跑狗图"></a> <div class="info"> <a href="/down/html/325587.html" target="_blank" title="晒码汇高清跑狗图">晒码汇高清跑狗图</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">11</em> <a href="/down/html/325587.html" target="_blank" title="晒码汇高清跑狗图">晒码汇高清跑狗图 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">12</em> <a href="/down/html/325283.html" title="118彩色厍图库118论坛历史图库" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210426/f60ab08f1f43d796fab5c9586f353826.png" alt="118彩色厍图库118论坛历史图库"></a> <div class="info"> <a href="/down/html/325283.html" target="_blank" title="118彩色厍图库118论坛历史图库">118彩色厍图库118论坛历史图库</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">12</em> <a href="/down/html/325283.html" target="_blank" title="118彩色厍图库118论坛历史图库">118彩色厍图库118论坛历史图库 v1.0.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">13</em> <a href="/down/html/325221.html" title="新版二四六每期资料" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210426/377a0a843875579499092cf0f39378f2.jpg" alt="新版二四六每期资料"></a> <div class="info"> <a href="/down/html/325221.html" target="_blank" title="新版二四六每期资料">新版二四六每期资料</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">13</em> <a href="/down/html/325221.html" target="_blank" title="新版二四六每期资料">新版二四六每期资料 v1.6.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">14</em> <a href="/down/html/325696.html" title="晒码汇香港鱼跃龙门" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210508/c9917dda32dc3e5d1135a02232d810fe.jpg" alt="晒码汇香港鱼跃龙门"></a> <div class="info"> <a href="/down/html/325696.html" target="_blank" title="晒码汇香港鱼跃龙门">晒码汇香港鱼跃龙门</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">14</em> <a href="/down/html/325696.html" target="_blank" title="晒码汇香港鱼跃龙门">晒码汇香港鱼跃龙门 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">15</em> <a href="/down/html/325178.html" title="香港正版资料免费大全246免费资料" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20210423/c2972b98977548177274de42ab611384.png" alt="香港正版资料免费大全246免费资料"></a> <div class="info"> <a href="/down/html/325178.html" target="_blank" title="香港正版资料免费大全246免费资料">香港正版资料免费大全246免费资料</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">15</em> <a href="/down/html/325178.html" target="_blank" title="香港正版资料免费大全246免费资料">香港正版资料免费大全246免费资料 v1.0.1 安卓版</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> </ul> </div> <!--热荐资讯end--> </div> </div> </div> <!-- 底部 --> <a href="http://www.veryhuo.com/youxi/" style="display: none;">游戏</a> <!--底部--> <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="https://beian.miit.gov.cn" target="_balnk" style="text-decoration:none">晋ICP备2021005033号-1</a>,版权投诉请发邮件到admin#veryhuo.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> var sco = ''; if (sco === 0){ $("#sco").append('<span></span><span></span><span></span><span></span><span></span>'); }else if (sco <= 20 && sco > 0){ $("#sco").append('<span class="light"></span><span></span><span></span><span></span><span></span>'); }else if (sco <= 40 && sco > 20){ $("#sco").append('<span class="light"></span><span class="light"></span><span></span><span></span><span></span>'); }else if (sco <= 60 && sco > 40){ $("#sco").append('<span class="light"></span><span class="light"></span><span class="light"></span><span></span><span></span>'); }else if (sco <= 80 && sco >= 60){ $("#sco").append('<span class="light"></span><span class="light"></span><span class="light"></span><span class="light"></span><span></span>'); }else if (sco === 100){ $("#sco").append('<span class="light"></span><span class="light"></span><span class="light"></span><span class="light"></span><span class="light"></span>'); } </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>