0
如果我有這種格式的大型XML文件:PHP返回特定數量的節點?
<person>
<attribute>value</attribue>
</person>
<person>
<attribute>value</attribue>
</person>
<person>
<attribute>value</attribue>
</person>
有數百上千的<person>
記錄....
我如何使用PHP,echo輸出到文件/回報'人'1-10,然後11-20等。
我發現了大量的例子(xpath等),返回所有節點或節點子集,但沒有返回特定範圍節點的示例。
我的具體文件有數十萬個<person>
節點。我想以xml格式輸出<person>
s 1-50,000,然後50,001-100,000等...