我想使用 php 按日期过滤我的 xml 数据
<xml>
<customer>
<cid>1</cid>
<amount_paid>1000</amount_paid>
<date>2012-01-10</date>
</customer>
<customer>
<cid>2</cid>
<amount_paid>3000</amount_paid>
<date>2012-01-10</date>
</customer>
<customer>
<cid>3</cid>
<amount_paid>1000</amount_paid>
<date>2012-01-05</date>
</customer>
<customer>
<cid>6</cid>
<amount_paid>7000</amount_paid>
<date>2012-01-21</date>
</customer>
</xml>
如何按日期过滤我的 xml?例如。我想获得 date = "2012-01-10" 的客户