Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Created June 5, 2013 19:43
Show Gist options
  • Save mustmodify/5716671 to your computer and use it in GitHub Desktop.
Save mustmodify/5716671 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'nokogiri'
doc = Nokogiri::XML('<cats><cat>1</cat><cat>2</cat></cats>')
doc.children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment