method
xpath
v1_9_1_378 -
Show latest stable
- Class:
REXML::Element
xpath()public
No documentation available.
# File lib/rexml/element.rb, line 538
def xpath
path_elements = []
cur = self
path_elements << __to_xpath_helper( self )
while cur.parent
cur = cur.parent
path_elements << __to_xpath_helper( cur )
end
return path_elements.reverse.join( "/" )
end