lib/mixml/tool.rb
def xpath(*paths, &block)
            nodesets = []
            process do |xml|
                nodesets << xml.xpath(*paths)
            end
            selection = Selection.new(nodesets)

            if block_given? then
                Docile.dsl_eval(selection, &block)
            end

            selection
        end
def xpath(*paths, &block)
            nodesets = []
            process do |xml|
                nodesets << xml.xpath(*paths)
            end
            selection = Selection.new(nodesets)

            if block_given? then
                Docile.dsl_eval(selection, &block)
            end

            selection
        end
Select nodes using an XPath expression and execute DSL commands for these nodes

 @param paths [Array<String>] XPath expression
 @yield Block to execute for each nodeset
 @return [void]