Skip to content

Instantly share code, notes, and snippets.

@astro
Created April 23, 2009 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save astro/100745 to your computer and use it in GitHub Desktop.
Save astro/100745 to your computer and use it in GitHub Desktop.
require 'nokogiri'
doc = Nokogiri::XML::Document.new
loop do
n = Nokogiri::XML::Element.new('e', doc)
n.add_namespace(nil, 'http://example.com')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment