Repository is archived
No commit activity in last 3 years
No release in over 3 years
Libxml_rails replaces ActiveSupport's XmlSimple XML parsing with libxml-ruby. Original gem by Brandon Mitchell, this fork is by Wes 'Narnach' Oldenbeuving.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.8.3
 Project Readme

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