-
-
Save rsim/6214390256868cd3c56a to your computer and use it in GitHub Desktop.
Differences between Nokogiri 1.4 and 1.5 on JRuby
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
require "rubygems" | |
# gem "nokogiri", "1.4.4.2" | |
gem "nokogiri", "1.5.0.beta.3" | |
require "nokogiri" | |
doc = Nokogiri::XML::Builder.new do |xml| | |
xml.node :name => 'some "quoted" word', :x=>1, :y=>2, :z=>3, :a=>4, :b=>5, :c=>6 | |
end | |
puts doc.to_xml | |
# Nokogiri 1.4.4.2 | |
# <node name="some "quoted" word" x="1" y="2" z="3" a="4" b="5" c="6"/> | |
# Nokogiri 1.5.0.beta.3 | |
# <node a="4" b="5" c="6" name="some %22quoted%22 word" x="1" y="2" z="3"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment