Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Narnach/libxml_rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Rails 2.1 compatible plugin for replacing XmlSimple with libxml-ruby.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages