Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created June 9, 2012 14:25
Show Gist options
  • Save chintanparikh/2901161 to your computer and use it in GitHub Desktop.
Save chintanparikh/2901161 to your computer and use it in GitHub Desktop.
Nokogiri XML parsing
require 'nokogiri'
require 'open-uri'
xml = Nokogiri::XML(open('https://jira.mongodb.org/plugins/servlet/streams'))
xml.xpath('//usr:username').each do |username|
puts username.content
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment