如果我想在XML文件的网页上创建表格? [英] If I wanted to make a table on a webpage from an XML File?
本文介绍了如果我想在XML文件的网页上创建表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不想使用PHP或asp.net或任何.net工具来做这件事。那么使用Javascript本身的最佳替代方案是什么?
一个例子是将表单数据写入XML文件并使用该XML文件填充另一个网页上的表格。
I do not want to do this using PHP or asp.net or any .net tools. So what is the best alternative using Javascript by itself?
An example would be a form of sorts write the form data to an XML file and use that XML file to populate a table on another web page.
推荐答案
例如,您可以使用jQuery(JavaScrip库)来解析XML: https://api.jquery.com/ jQuery.parseXML [ ^ ]。
-SA
For example, you can use jQuery (JavaScrip library) to parse XML: https://api.jquery.com/jQuery.parseXML[^].
—SA
建议:XSLT就是为了这个。
如果你想学习这门语言。
Advice: XSLT is there just for that.
If you want to learn the language.
这篇关于如果我想在XML文件的网页上创建表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文