Created
December 20, 2011 13:50
-
-
Save lwe/1501622 to your computer and use it in GitHub Desktop.
Revisions
-
lwe revised this gist
Dec 20, 2011 . 1 changed file with 21 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,16 @@ ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] ------------------------------------------------------------- > ruby /tmp/fail.rb Platform: universal-darwin11.0 Nokogiri: 1.5.0 <?xml version="1.0"?> <bar> <some>value</some> <other>1234</other> </bar> > ruby /tmp/ok.rb Platform: universal-darwin11.0 Nokogiri: 1.5.0 <?xml version="1.0"?> @@ -13,7 +22,17 @@ ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] -------------------------------------------------------------------------------------------------------------------- > jruby /tmp/fail.rb Platform: java Nokogiri: 1.5.0 <?xml version="1.0"?> > jruby /tmp/ok.rb Platform: java Nokogiri: 1.5.0 <?xml version="1.0"?> <bar> <some>value</some> <other>1234</other> </bar> -
lwe revised this gist
Dec 20, 2011 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ require 'rubygems' require 'nokogiri' puts "Platform: #{RUBY_PLATFORM}" puts "Nokogiri: #{Nokogiri::VERSION}" xml = <<XML <bar> <some>value</some> <other>1234</other> </bar> XML doc = Nokogiri::XML(xml) puts doc.to_s -
lwe created this gist
Dec 20, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ require 'rubygems' require 'nokogiri' puts "Platform: #{RUBY_PLATFORM}" puts "Nokogiri: #{Nokogiri::VERSION}" xml = <<XML <foo:bar> <some>value</some> <other>1234</other> </foo:bar> XML doc = Nokogiri::XML(xml) puts doc.to_s This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] ------------------------------------------------------------- > ruby /tmp/test.rb Platform: universal-darwin11.0 Nokogiri: 1.5.0 <?xml version="1.0"?> <bar> <some>value</some> <other>1234</other> </bar> jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] -------------------------------------------------------------------------------------------------------------------- > jruby /tmp/test.rb Platform: java Nokogiri: 1.5.0 <?xml version="1.0"?>