# File lib/xml/dom/core.rb, line 2160 def _getMyLocation(parent) index = 1 parent.childNodes do |child| if child == self return "child(#{index},#{@name})" end if child.nodeType == ELEMENT_NODE && child.nodeName == @name index += 1 end end nil end