Skip to content

Instantly share code, notes, and snippets.

@sbryant
Forked from tenderlove/test.rb
Created October 1, 2010 20:56
Show Gist options
  • Save sbryant/606844 to your computer and use it in GitHub Desktop.
Save sbryant/606844 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'nokogiri'
dummy = Nokogiri.XML(<<-eoxml)
<dummy xmlns:fb="whatever"></dummy>
eoxml
user_input = DATA.read
doc = dummy.root.parse user_input
puts doc.to_xml
__END__
<fb:fbml version="1.0">
<invalid><invalid>
</fb:fbml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment