Skip to content

Instantly share code, notes, and snippets.

@robsyme
Created November 6, 2009 06:55
Show Gist options
  • Save robsyme/227786 to your computer and use it in GitHub Desktop.
Save robsyme/227786 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require "xml/libxml"
a = XML::Reader.file(ARGV.shift)
while a.read
node = a.node
if node.name == "Iteration"
iteration = XML::Document.string(node.to_s)
hits = iteration.find('/Iteration_hits')
puts hits.string
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment