Scala XML节点获取xpath

Scala XML节点获取xpath,xml,scala,xpath,Xml,Scala,Xpath,有没有办法,如何在Scala中获得XML节点的完整xpath?我有: val count = ((sport \\ "android.widget.TextView") filter {t => (t \ "@resource-id").text == "my.app.test:id/sport_count"}) \ "@text" 我需要类似于count.getFullXPath的东西,它返回带有XPath的字符串

有没有办法,如何在Scala中获得XML节点的完整xpath?我有:

val count = ((sport \\ "android.widget.TextView") filter {t => (t \ "@resource-id").text == "my.app.test:id/sport_count"}) \ "@text"
我需要类似于count.getFullXPath的东西,它返回带有XPath的字符串