I solved this problem for myself by parsing my predicate for the path value and traversing the DOM looking for a <path> element with text content equal to the string.