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

当前位置:首页 > 网络知识 > 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/249646.html" target="_blank">哪一款电子游戏好爆分?高爆分电子游戏推荐</a> <time>2020-06-25</time> </li> <li> <a class="AT2" href="/a/view/249536.html" target="_blank">b站视频闪退怎么办?b站闪退的解决方法</a> <time>2020-06-24</time> </li> <li> <a class="AT2" href="/a/view/248844.html" target="_blank">北京健康宝什么颜色是健康的!不同的颜色代表什么?</a> <time>2020-06-19</time> </li> <li> <a class="AT2" href="/a/view/248764.html" target="_blank">苹果手机iOS系统怎么二次修改微信号?</a> <time>2020-06-18</time> </li> <li> <a class="AT2" href="/a/view/248730.html" target="_blank">哪个软件有三公游戏?能玩三公的棋牌游戏推荐</a> <time>2020-06-18</time> </li> <li> <a class="AT2" href="/a/view/248321.html" target="_blank">百度推出高考放心搜计划!上千高考直播以及智能估分全面满足高考生需求</a> <time>2020-06-15</time> </li> <li> <a class="AT2" href="/a/view/248003.html" target="_blank">乐动体育足球培训为青少年体育培训行业提供了专业教学模式</a> <time>2020-06-11</time> </li> <li> <a class="AT2" href="/a/view/247485.html" target="_blank">Google+ for G Suite将在7月开始正式关闭</a> <time>2020-06-08</time> </li> <li> <a class="AT2" href="/a/view/247387.html" target="_blank">哪个软件可以玩二人斗地主?真人二人斗地主用什么软件好?</a> <time>2020-06-08</time> </li> <li> <a class="AT2" href="/a/view/247297.html" target="_blank">网上斗地主赢钱的有哪些?可以赢钱的斗地主APP分享</a> <time>2020-06-06</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/laohuji_youxi/"> <img src="//pic.veryhuo.com/upload/spec/20200702/8cefc47103ab650250bb8d2ba0236e2f.png" alt="手机老虎机游戏大全"> <s></s> <strong>手机老虎机游戏大全</strong> </a> </li> <li> <a href="/z/tiyu-shequ-app/"> <img src="//pic.veryhuo.com/upload/spec/20200702/da2182ce9473f6c96a6ac98661ddb065.jpg" alt="2020好用的体育社区app排名榜"> <s></s> <strong>2020好用的体育社区app排名榜</strong> </a> </li> <li> <a href="/z/sangong_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20200701/86b8caa106f08656217733d54871a57a.png" alt="三公棋牌游戏大全"> <s></s> <strong>三公棋牌游戏大全</strong> </a> </li> <li> <a href="/z/SLG_celve_shouyou/"> <img src="//pic.veryhuo.com/upload/spec/20200630/b89cde853d4a4e4bf6c24b0f8ac8c590.png" alt="SLG策略手游合集"> <s></s> <strong>SLG策略手游合集</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/250893.html" class="txt">微距影厅 v1.1.95 安卓版</a> </li> <li> <span class="num">2</span> <a href="/down/html/250945.html" class="txt">书咚 v1.1.7 安卓版</a> </li> <li> <span class="num">3</span> <a href="/down/html/250965.html" class="txt">趣狐直播 v1.0 安卓版</a> </li> <li> <span class="num">4</span> <a href="/down/html/250897.html" class="txt">极品飙车破解版 v1.2.7 安卓吧</a> </li> <li> <span class="num">5</span> <a href="/down/html/250889.html" class="txt">进钧体育 v1.0.4 安卓版</a> </li> <li> <span class="num">6</span> <a href="/down/html/250497.html" class="txt">速走计步器 v1.0.1 安卓版</a> </li> <li> <span class="num">7</span> <a href="/down/html/250849.html" class="txt">脸玩 v1.0.5 安卓版</a> </li> <li> <span class="num">8</span> <a href="/down/html/250848.html" class="txt">养个喵 v1.01 安卓版</a> </li> <li> <span class="num">9</span> <a href="/down/html/250831.html" class="txt">和风剧院 v1.1 安卓版</a> </li> <li> <span class="num">10</span> <a href="/down/html/250989.html" class="txt">美女沙排 v1.7.0 安卓版</a> </li> <li> <span class="num">11</span> <a href="/down/html/250977.html" class="txt">冰河世界 v1.3.0 安卓版</a> </li> <li> <span class="num">12</span> <a href="/down/html/250962.html" class="txt">千里马计划 v4.4 安卓版</a> </li> <li> <span class="num">13</span> <a href="/down/html/250958.html" class="txt">ag夏日营地 v4.0.1 安卓版</a> </li> <li> <span class="num">14</span> <a href="/down/html/250953.html" class="txt">YBT体育 v1.0 安卓版</a> </li> <li> <span class="num">15</span> <a href="/down/html/250956.html" class="txt">优兔阅读 v1.7.7 安卓版 </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/250897.html" title="极品飙车破解版" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/d94d8080ce12892cda2e90a8791bfffa.jpg" alt="极品飙车破解版"></a> <div class="info"> <a href="/down/html/250897.html" target="_blank" title="极品飙车破解版">极品飙车破解版</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">1</em> <a href="/down/html/250897.html" target="_blank" title="极品飙车破解版">极品飙车破解版 v1.2.7 安卓吧</a> </div> </li> <li> <div class="show"> <em class="nub">2</em> <a href="/down/html/250889.html" title="进钧体育" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/aa97ff2a9b4f3ad312cb68377d199c6b.png" alt="进钧体育"></a> <div class="info"> <a href="/down/html/250889.html" target="_blank" title="进钧体育">进钧体育</a> <span class="cata">类型:体育竞技</span> </div> </div> <div class="hide"> <em class="nub">2</em> <a href="/down/html/250889.html" target="_blank" title="进钧体育">进钧体育 v1.0.4 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">3</em> <a href="/down/html/250848.html" title="养个喵" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/b4ab90bdb5a01f451ffd96a4f6b71a8a.png" alt="养个喵"></a> <div class="info"> <a href="/down/html/250848.html" target="_blank" title="养个喵">养个喵</a> <span class="cata">类型:休闲益智</span> </div> </div> <div class="hide"> <em class="nub">3</em> <a href="/down/html/250848.html" target="_blank" title="养个喵">养个喵 v1.01 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">4</em> <a href="/down/html/250831.html" title="和风剧院" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200702/428818e070fa944bd600740f60b18c41.jpg" alt="和风剧院"></a> <div class="info"> <a href="/down/html/250831.html" target="_blank" title="和风剧院">和风剧院</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">4</em> <a href="/down/html/250831.html" target="_blank" title="和风剧院">和风剧院 v1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">5</em> <a href="/down/html/250989.html" title="美女沙排" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/24ece0ab1b2cee55929f90d273705316.jpg" alt="美女沙排"></a> <div class="info"> <a href="/down/html/250989.html" target="_blank" title="美女沙排">美女沙排</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">5</em> <a href="/down/html/250989.html" target="_blank" title="美女沙排">美女沙排 v1.7.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">6</em> <a href="/down/html/250977.html" title="冰河世界" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/e2638a59e2b794bdfd2b562884023e3d.jpg" alt="冰河世界"></a> <div class="info"> <a href="/down/html/250977.html" target="_blank" title="冰河世界">冰河世界</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">6</em> <a href="/down/html/250977.html" target="_blank" title="冰河世界">冰河世界 v1.3.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">7</em> <a href="/down/html/250962.html" title="千里马计划" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/268b57f8a6a02eb390b33ea51e9d01ea.png" alt="千里马计划"></a> <div class="info"> <a href="/down/html/250962.html" target="_blank" title="千里马计划">千里马计划</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">7</em> <a href="/down/html/250962.html" target="_blank" title="千里马计划">千里马计划 v4.4 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">8</em> <a href="/down/html/250958.html" title="ag夏日营地" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/9fb8eb76ab4c1d1c1bbeea3f5bc939ce.png" alt="ag夏日营地"></a> <div class="info"> <a href="/down/html/250958.html" target="_blank" title="ag夏日营地">ag夏日营地</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">8</em> <a href="/down/html/250958.html" target="_blank" title="ag夏日营地">ag夏日营地 v4.0.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">9</em> <a href="/down/html/250953.html" title="YBT体育" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/5d27cd8c30b044a039768c84023e60f5.png" alt="YBT体育"></a> <div class="info"> <a href="/down/html/250953.html" target="_blank" title="YBT体育">YBT体育</a> <span class="cata">类型:体育竞技</span> </div> </div> <div class="hide"> <em class="nub">9</em> <a href="/down/html/250953.html" target="_blank" title="YBT体育">YBT体育 v1.0 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">10</em> <a href="/down/html/250955.html" title="快乐童年之和平小镇" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/1e115dec5094f4ac4fbd4b1ab843cbc5.png" alt="快乐童年之和平小镇"></a> <div class="info"> <a href="/down/html/250955.html" target="_blank" title="快乐童年之和平小镇">快乐童年之和平小镇</a> <span class="cata">类型:动作射击</span> </div> </div> <div class="hide"> <em class="nub">10</em> <a href="/down/html/250955.html" target="_blank" title="快乐童年之和平小镇">快乐童年之和平小镇 v1.01 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">11</em> <a href="/down/html/250895.html" title="306彩票" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/2e42e8b1b2be3a0528f0750aa2cfd038.png" alt="306彩票"></a> <div class="info"> <a href="/down/html/250895.html" target="_blank" title="306彩票">306彩票</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">11</em> <a href="/down/html/250895.html" target="_blank" title="306彩票">306彩票 v3.1.1 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">12</em> <a href="/down/html/250952.html" title="千山计划" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200617/8f2b32ae2dd2959a6b8825913d4ce55e.png" alt="千山计划"></a> <div class="info"> <a href="/down/html/250952.html" target="_blank" title="千山计划">千山计划</a> <span class="cata">类型:彩票软件</span> </div> </div> <div class="hide"> <em class="nub">12</em> <a href="/down/html/250952.html" target="_blank" title="千山计划">千山计划 v5.3 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">13</em> <a href="/down/html/250950.html" title="亚瑟王" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/ec8535362503ffc35d4684df20080b5a.jpg" alt="亚瑟王"></a> <div class="info"> <a href="/down/html/250950.html" target="_blank" title="亚瑟王">亚瑟王</a> <span class="cata">类型:棋牌桌游</span> </div> </div> <div class="hide"> <em class="nub">13</em> <a href="/down/html/250950.html" target="_blank" title="亚瑟王">亚瑟王 v1.1.4 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">14</em> <a href="/down/html/250948.html" title="火炬之光无限破解版" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/87606c2ed48fc9d4de70d2e9e18ad15d.png" alt="火炬之光无限破解版"></a> <div class="info"> <a href="/down/html/250948.html" target="_blank" title="火炬之光无限破解版">火炬之光无限破解版</a> <span class="cata">类型:角色扮演</span> </div> </div> <div class="hide"> <em class="nub">14</em> <a href="/down/html/250948.html" target="_blank" title="火炬之光无限破解版">火炬之光无限破解版 v1.01 安卓版</a> </div> </li> <li> <div class="show"> <em class="nub">15</em> <a href="/down/html/250946.html" title="勇敢的哈克测试版" target="_blank"><img class="lazy"src="//pic.veryhuo.com/upload/soft/20200703/6bb5fbf06211c0d3b61a6942027ba3ee.png" alt="勇敢的哈克测试版"></a> <div class="info"> <a href="/down/html/250946.html" target="_blank" title="勇敢的哈克测试版">勇敢的哈克测试版</a> <span class="cata">类型:休闲益智</span> </div> </div> <div class="hide"> <em class="nub">15</em> <a href="/down/html/250946.html" target="_blank" title="勇敢的哈克测试版">勇敢的哈克测试版 v1.01 安卓版</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> <!-- 底部 --> <!--底部--> <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>