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

当前位置:首页 > 网络知识 > 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/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> <li> <a class="AT2" href="/a/view/226452.html" target="_blank">云酷APP为什么这么多人使用?</a> <time>2019-11-15</time> </li> <li> <a class="AT2" href="/a/view/226363.html" target="_blank">Apple Watch应用程序新增遥控器功能</a> <time>2019-11-12</time> </li> <li> <a class="AT2" href="/a/view/226052.html" target="_blank">进击北极圈!斗鱼24小时直播北极极地风光</a> <time>2019-11-09</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/haizhan_sheji_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20191205/c3a6a508f830a0f4692d8abdd58c3ada.jpg" alt="海战手游ios版"> <s></s> <strong>海战手游ios版</strong> </a> </li> <li> <a href="/z/xiangsu_saiche_youxi/"> <img src="//pic.veryhuo.com/upload/spec/20191205/af7646f8c23faf6f2a07e002efaac04a.jpg" alt="像素赛车手游合集"> <s></s> <strong>像素赛车手游合集</strong> </a> </li> <li> <a href="/z/sanguo_huihezhi_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20191204/95616efb6f2392ab8a7b69deb874685d.jpg" alt="三国回合制手游推荐"> <s></s> <strong>三国回合制手游推荐</strong> </a> </li> <li> <a href="/z/sanguo_tafang_youxi/"> <img src="//pic.veryhuo.com/upload/spec/20191204/2a400247abd040a0d885d1bae9c6f88a.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/229002.html" class="txt">喵知 v1.0.4 安卓版</a> </li> <li> <span class="num">2</span> <a href="/down/html/228997.html" class="txt">魔视极速版 v1.0.0.1 安卓版</a> </li> <li> <span class="num">3</span> <a href="/down/html/228988.html" class="txt">你好嘟嘟 v1.0.4 安卓版</a> </li> <li> <span class="num">4</span> <a href="/down/html/228987.html" class="txt">巅峰岁月 v1.0 安卓版</a> </li> <li> <span class="num">5</span> <a href="/down/html/228954.html" class="txt">上线了 v1.6.5 安卓版</a> </li> <li> <span class="num">6</span> <a href="/down/html/228871.html" class="txt">看房日记 v.6.13.3 安卓版</a> </li> <li> <span class="num">7</span> <a href="/down/html/228976.html" class="txt">多糖 v1.0.0 安卓版</a> </li> <li> <span class="num">8</span> <a href="/down/html/228962.html" class="txt">hey同学 v2.3.9 安卓版</a> </li> <li> <span class="num">9</span> <a href="/down/html/228957.html" class="txt">萌喵消消乐 v1.0 安卓版</a> </li> <li> <span class="num">10</span> <a href="/down/html/228939.html" class="txt">金冠十三水 v4.0.0 安卓版</a> </li> <li> <span class="num">11</span> <a href="/down/html/228921.html" class="txt"> 彩票计划 v1.0 安卓版</a> </li> <li> <span class="num">12</span> <a href="/down/html/228896.html" class="txt">彩票之家 V1.0 安卓版</a> </li> <li> <span class="num">13</span> <a href="/down/html/228955.html" class="txt">全民炸翻天 v4.3.2 安卓版</a> </li> <li> <span class="num">14</span> <a href="/down/html/228953.html" class="txt">天天彩票 v3.8.11.2 安卓版</a> </li> <li> <span class="num">15</span> <a href="/down/html/228940.html" class="txt">彩票计划 v3.7.1 安卓版</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/228987.html" title="巅峰岁月" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191207/0dac30a65c5f9a5d4f5630abc05958ac.jpg" alt="巅峰岁月"></a> <div class="info"> <a href="/down/html/228987.html" target="_blank" title="巅峰岁月">巅峰岁月</a> <span class="cata">类型:角色扮演</span> </div> </div> <div class="hide"> <em class="nub">1</em> <a href="/down/html/228987.html" target="_blank" title="巅峰岁月">巅峰岁月 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">2</em> <a href="/down/html/228957.html" title="萌喵消消乐" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/f7ee6ca83e3738c62221f9e24b10f7de.jpg" alt="萌喵消消乐"></a> <div class="info"> <a href="/down/html/228957.html" target="_blank" title="萌喵消消乐">萌喵消消乐</a> <span class="cata">类型:塔防消除</span> </div> </div> <div class="hide"> <em class="nub">2</em> <a href="/down/html/228957.html" target="_blank" title="萌喵消消乐">萌喵消消乐 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">3</em> <a href="/down/html/228939.html" title="金冠十三水" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/06db677b07a0e4113cef3f07341ea5c8.png" alt="金冠十三水"></a> <div class="info"> <a href="/down/html/228939.html" target="_blank" title="金冠十三水">金冠十三水</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">3</em> <a href="/down/html/228939.html" target="_blank" title="金冠十三水">金冠十三水 v4.0.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">4</em> <a href="/down/html/228921.html" title=" 彩票计划" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/b33c0dde0a153ff33f80fe69b0779b97.png" alt=" 彩票计划"></a> <div class="info"> <a href="/down/html/228921.html" target="_blank" title=" 彩票计划"> 彩票计划</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">4</em> <a href="/down/html/228921.html" target="_blank" title=" 彩票计划"> 彩票计划 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">5</em> <a href="/down/html/228896.html" title="彩票之家" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191114/6fd5391418c5a9d9a76751d7ade6e193.png" alt="彩票之家"></a> <div class="info"> <a href="/down/html/228896.html" target="_blank" title="彩票之家">彩票之家</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">5</em> <a href="/down/html/228896.html" target="_blank" title="彩票之家">彩票之家 V1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">6</em> <a href="/down/html/228955.html" title="全民炸翻天" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/e1d479b03866652e3c2eca405ae6b6ce.png" alt="全民炸翻天"></a> <div class="info"> <a href="/down/html/228955.html" target="_blank" title="全民炸翻天">全民炸翻天</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">6</em> <a href="/down/html/228955.html" target="_blank" title="全民炸翻天">全民炸翻天 v4.3.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">7</em> <a href="/down/html/228953.html" title="天天彩票" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/eb309581307829c2680e40dd7bfbd170.png" alt="天天彩票"></a> <div class="info"> <a href="/down/html/228953.html" target="_blank" title="天天彩票">天天彩票</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">7</em> <a href="/down/html/228953.html" target="_blank" title="天天彩票">天天彩票 v3.8.11.2 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">8</em> <a href="/down/html/228940.html" title="彩票计划" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/074290528d12eff9b45f7d13748bb795.png" alt="彩票计划"></a> <div class="info"> <a href="/down/html/228940.html" target="_blank" title="彩票计划">彩票计划</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">8</em> <a href="/down/html/228940.html" target="_blank" title="彩票计划">彩票计划 v3.7.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">9</em> <a href="/down/html/228942.html" title="超级星球" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/04e49e4bf76eed8925d2c8909c27c2f9.png" alt="超级星球"></a> <div class="info"> <a href="/down/html/228942.html" target="_blank" title="超级星球">超级星球</a> <span class="cata">类型:体育竞技</span> </div> </div> <div class="hide"> <em class="nub">9</em> <a href="/down/html/228942.html" target="_blank" title="超级星球">超级星球 v1.6.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">10</em> <a href="/down/html/228908.html" title="疯狂恐龙世界" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/e0f44ff417fac07bb17bf0de4e8344e7.jpg" alt="疯狂恐龙世界"></a> <div class="info"> <a href="/down/html/228908.html" target="_blank" title="疯狂恐龙世界">疯狂恐龙世界</a> <span class="cata">类型:角色扮演</span> </div> </div> <div class="hide"> <em class="nub">10</em> <a href="/down/html/228908.html" target="_blank" title="疯狂恐龙世界">疯狂恐龙世界 v1.0.3 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">11</em> <a href="/down/html/228902.html" title="街头篮球盒子" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/87c48e74c8e621cb065f7461bde12966.png" alt="街头篮球盒子"></a> <div class="info"> <a href="/down/html/228902.html" target="_blank" title="街头篮球盒子">街头篮球盒子</a> <span class="cata">类型:手游辅助</span> </div> </div> <div class="hide"> <em class="nub">11</em> <a href="/down/html/228902.html" target="_blank" title="街头篮球盒子">街头篮球盒子 v1.3.3 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">12</em> <a href="/down/html/228922.html" title="掌上数独" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/6d738b9ad668f6fba883ad94020b5720.png" alt="掌上数独"></a> <div class="info"> <a href="/down/html/228922.html" target="_blank" title="掌上数独">掌上数独</a> <span class="cata">类型:休闲益智</span> </div> </div> <div class="hide"> <em class="nub">12</em> <a href="/down/html/228922.html" target="_blank" title="掌上数独">掌上数独 v1.0.7 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">13</em> <a href="/down/html/228919.html" title="随身魔兽世界" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/2f14f5271fbe52ed78183a88162178f1.jpg" alt="随身魔兽世界"></a> <div class="info"> <a href="/down/html/228919.html" target="_blank" title="随身魔兽世界">随身魔兽世界</a> <span class="cata">类型:手游辅助</span> </div> </div> <div class="hide"> <em class="nub">13</em> <a href="/down/html/228919.html" target="_blank" title="随身魔兽世界">随身魔兽世界 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">14</em> <a href="/down/html/228909.html" title="彩票直通车" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191206/939e997983311b6226588f0f95a70326.png" alt="彩票直通车"></a> <div class="info"> <a href="/down/html/228909.html" target="_blank" title="彩票直通车">彩票直通车</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">14</em> <a href="/down/html/228909.html" target="_blank" title="彩票直通车">彩票直通车 V4.6.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">15</em> <a href="/down/html/228879.html" title="彩票360app" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20191127/f1a32ece5450cc6a0af00ded71e43658.png" alt="彩票360app"></a> <div class="info"> <a href="/down/html/228879.html" target="_blank" title="彩票360app">彩票360app</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">15</em> <a href="/down/html/228879.html" target="_blank" title="彩票360app">彩票360app V2.2.49 安卓版</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>