# File lib/xml/xpath.rb, line 2633 def each(node, visitor) parent = visitor.visit(node).parent yield visitor.visit(parent) if parent end