You can test if a path exists with the HASPATH operator. For example, the query:
HASPATH
HASPATH(A/B/C)
finds and returns a score of 100 for the document
<A><B><C>dog</C></B></A>
without the query having to reference dog at all.
Scripting on this page enhances content navigation, but does not change the content in any way.