backtrack-xpath accepts a REXML::Element and returns the full XPath back to the root.
James Robertson
MIT