Skip to content

Instantly share code, notes, and snippets.

View brianjolly's full-sized avatar

Brian Jolly brianjolly

View GitHub Profile
require 'nokogiri'
doc = Nokogiri::XML(File.open("deploy/data/BundleData.xml")) do |config| config.noblanks end
puts "Default Price:"
doc.xpath("//DefaultPrice/Choice").each { |p| puts "id: #{p['id']} price: #{p.content}" }
puts "ExistingCustPrice Price:"
doc.xpath("//ExistingCustPrice/Choice").each { |p| puts "id: #{p['id']} price: #{p.content}" }
@brianjolly
brianjolly / vagrant.org
Created July 18, 2011 22:01 — forked from zellyn/vagrant.org
Setting up a CentOS 5.4 base box for Vagrant