我有一个包含 1000 多条记录的 xml 文件,xml 结构是:
<?xml version="1.0" encoding="UTF-8"?>
<deals>
<deal>
<deal_id>1</deal_id>
<deal_title> <![CDATA[THE TITLE]]> </deal_title>
<deal_description> <![CDATA[THE DESCRIPTION]]> </deal_description>
<deal_url> <![CDATA[http://www.thedomain.com]]> </deal_url>
<deal_price>12.00</deal_price>
<deal_previous_price>68.00</deal_previous_price>
<deal_discount>82</deal_discount>
<deal_image> <![CDATA[http://www.thedomain.com/images/image.jpg]]> </deal_image>
<deal_shop>DEAL SITE NAME</deal_shop>
</deal>
</deals>
现在如何使用限制来加载 .xml 文件以显示 10 条记录?
我将使用本教程http://www.9lessons.info/2009/12/twitter-style-load-more-results-with.html
当用户按下“加载更多”按钮时显示更多记录
谢谢..