XML文件如下所示:
<?xml version="1.0" encoding="UTF-8" ?>
<response>
<library name="My Library">
<book id="1" checked-out="1">
<authors>
<author>John Resig</author>
</authors>
<title>Pro JavaScript Techniques (Pro)</title>
<isbn-10>1590597273</isbn-10>
</book>
<book id="2" checked-out="0">
<authors>
<author>Erich Gamma</author>
<author>Richard Helm</author>
<author>Ralph Johnson</author>
<author>John M. Vlissides</author>
</authors>
<title>Design Patterns: Elements of Reusable Object-Oriented Software</title>
<isbn-10>0201633612</isbn-10>
</book>
...
</library>
</response>
会爱任何帮助!
答案 0 :(得分:0)
这完全取决于你想要的结果有多复杂。如果你想从那个XML文件创建一个可排序的表,并且你喜欢YUI,那么有一个YUI2小部件可以为它创造奇迹。这是一个例子:http://developer.yahoo.com/yui/examples/datatable/dt_xhrpostxml.html