如何将xml文件加载到HTML表中? [英] How do I load an xml file into a HTML table?

查看:141
本文介绍了如何将xml文件加载到HTML表中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我用HTML创建了一个包含2个单元格的表格。第一个单元格名为电影名称,第二个单元格为空。



我会用外部源(xml文件)中的电影标题填充第二个单元格。我怎么能这样做呢?感谢您的帮助,新的编程



Hi Guys,

I have simply created a table in HTML with 2 cells.The first cell entitled "film name" and the second cell empty.

I would to fill the second cell with a film title from an external source (xml file). How can I go about in doing this? thank you for your help in advance, new to programming

<tr id="movie1">
     <td>
     Film name
     </td>
     <td>
     I WANT THE MOVIE TITLE TO BE LOADED IN THIS CELL
     </td>
  </tr>







再次感谢你。



L.




Thank you once again.

L.

推荐答案

您可以使用 XSLT转换来实现您的目标......这是 example [ ^ ]



我不熟悉那个特定网站,所以还有其他例子 google search [ ^ ]
You can use an XSLT transformation to achieve your aim ... here is an example[^]

I'm not familiar with that particular site, so there are other examples with this google search[^]


这篇关于如何将xml文件加载到HTML表中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆