RubyGems.org

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

installgem install backtrack-xpath -v 0.1.0
1,658 total downloads 1,381 for this version
Owners

A77d991a4a407acfe288f24810185808

Gemfile
gem "backtrack-xpath", "~> 0.1.0"
Versions
  1. 0.1.1 February 6, 2013
  2. 0.1.0 May 3, 2010