我有传承Xml的雅氏功能。 在xml,有一张桌子和其他一些Xml元素。 我尝试了几种办法,以摘取html表格,以插入网页,但被告知我需要把表格与《空运公约》一起总结。 然后,我可以使用<代码>,$container.html(respose.find ( table-data ).text(),使其发挥作用。
我要问的是:
- Is this the only way to do this?
- Why is CDATA needed? I thought xhtml should co-exists with xml nicely.
EDIT:
Here is my xml response, I have checked with Firebug and is valid:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<response>
<data>
<li class="item x1">
<p class="l1"><b class="view">0 views</b></p>
</li>
<li class="item x2">
<p class="l1"><b class="view">0 views</b></p>
</li>
</data>
<total_count>101387</total_count>
<total_pages>4056</total_pages>
<pagesize>25</pagesize>
</response>