So given this XML...
<?xml version="1.0" encoding="UTF-8"?>
<root>
<tree dah="false">
<tree dah="false">
<tree dah="false"/>
<tree dah="false"/>
</tree>
<tree dah="false">
<tree dah="true"/>
<tree dah="false"/>
</tree>
</tree>
</root>
...I need an XPath that will evaluate to true since there is at least one tree/@dah='true'.
But that would evaluate to false if the XML looked like this...
<?xml version="1.0" encoding="UTF-8"?>
<root>
<tree dah="false">
<tree dah="false">
<tree dah="false"/>
<tree dah="false"/>
</tree>
<tree dah="false">
<tree dah="false"/>
<tree dah="false"/>
</tree>
</tree>
</root>
Also, the tree nodes may be any depth. I have three levels in my example, but it could go much deeper.