# File lib/xml/dom2/xpath.rb, line 306 def _getMyLocationInXPath(parent) n = parent.childNodes.index(self) "node()[#{n + 1}]" end