我有以下 xml 文件
<musicLibrary>
<compilation id="C01" title="Best of something">
<title no="1" name="firstOne">
<fileID>F01</fileID>
</title>
<title no="2" name="secondOne">
<fileID>F02</fileID>
</title>
<title no="3" name="thirdOne">
<fileID>F03</fileID>
</title>
<title no="4" name="fourthOne">
<fileID>F04</fileID>
<fileID>F05</fileID>
</title>
</compiltion>
<compilation id="C02" title="Best of another thing">
...
</compilation>
<files>
<file id="F01">
<filename>soundFile8.mp3</filename>
<size>3.456</size>
<length>3.23</length>
</file>
<file id="F02">
<filename>soundFile2.mp3</filename>
<size>3.456</size>
<length>3.23</length>
</file>
<file id="F03">
<filename>soundFile7.mp3</filename>
<size>3.456</size>
<length>3.23</length>
</file>
<file id="F04">
<filename>soundFile5.mp3</filename>
<size>3.456</size>
<length>3.23</length>
</file>
<file id="F05">
<filename>soundFile3.mp3</filename>
<size>3.456</size>
<length>3.23</length>
</file>
</files>
</musicLibrary>
是否可以通过仅提供集合 ID 从文件信息中检索,例如一个编译的播放时间总共多长时间?我真的坚持这一点。:/我真的很想念SQL中的连接之类的东西;)
提前致谢!