<?xml>
<env>
<body>
<folderxml>
<folder id='1'>
<folder id='2' name ='document'>
<folder id='3' name ='Music'>
<folder id= '4' name= 'album' xlink='true'>
</folder>
</folder>
</folder>
</folder>
</folderxml>
</body>
</env>
如果属性“链接”为真,我需要路径。像 xpath.evaluate(path if(link=true)) 这样的东西。结果应该类似于“/documents/music/album”