xdmp:hash64( $string as xs:string ) as xs:unsignedLong
Returns the 64-bit hash of a string.
xdmp:hash64("/a/b[1]/c") => 5082244643751628547