-
-
Save pdtpatrick/967f3182f0349624eb20 to your computer and use it in GitHub Desktop.
xmlparser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'nokogiri' | |
doc = Nokogiri::XML(File.open('/Users/ptaylor/code/smilescripts/RubyCode/testingxml.xml')) | |
puts doc.css("//HSItemPrice").each { |x| puts x } | |
puts "Length: " + doc.children.length.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment