treesearch: get fragments from xpath query results