EX文件music.xml:
<musics>
<music id="1">
<title>Title 1</title>
<url>music/1.mp3</url>
</music>
<music id="2">
<title>Title 2</title>
<url>music/2.mp3</url>
</music>
<music id="3">
<title>Title 3</title>
<url>music/3.mp3</url>
</music>
<music id="4">
<title>Title 4</title>
<url>music/4.mp3</url>
</music>
</musics>
$xml = new SimpleXMLElement('music.xml', NULL, TRUE);
$result = $mxl->xpath('music');
如何选择 LIMIT(X, Y) 如何按标题或网址排序