libxml_rails¶ ↑
libxml_rails is a gem/rails plugin by Brandon Mitchell. It is designed to replace the default XML processor in Rails (XmlSimple) with the C-based libxml. It requires the libxml-ruby gem.
This fork is maintained by Wes ‘Narnach’ Oldenbeuving.
Changes from the Brandon’s version are:
-
Don’t rely on echoe to build the gem.
-
Added Hash#to_xml_with_libxml and Array#to_xml_with_libxml
-
ActiveResource::Base#to_xml uses libxml.
-
ActiveResource::Formats::XmlFormat#encode uses libxml
Installation¶ ↑
libxml_rails can be installed as a rails plugin or as a stand-alone gem.
Gem Installation¶ ↑
From PROJECT_ROOT:
gem install libxml-ruby rake install
Plugin Installation¶ ↑
From RAILS_ROOT:
script/plugin install git://github.com/Narnach/libxml_rails.git
Add the following to the configuration block in config/environment.rb:
config.gem 'libxml-ruby'
Gem Installation¶ ↑
Add the following to the configuration block in config/environment.rb:
config.gem 'Narnach-libxml_rails', :source => 'http://gems.github.com'
Copyright © 2008 Brandon Mitchell, released under the MIT license