Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.
Narnach edited this page Sep 13, 2010 · 5 revisions

This is a forked repository. bitbckt’s libxml_rails wiki might have more information on the upstream development.

Downstream, my focus is:

  1. Implement a drop-in #to_xml for Rails classes, offer #lib_to_xml_with_libxml for core classes such as Hash and Array
  2. Tweak the gem to my liking in making it work with ActiveRecord/ActiveResource/Rails in general.

Version-wise, I use the fourth digit in the version number to allow my own gem versioning without conflicting with upstream.

Things that actually work:

  1. Hash#to_xml_with_libxml
  2. Array#to_xml_with_libxml
  3. ActiveResource::Base#to_xml, which uses libxml
  4. ActiveResource::Formats::XmlFormat#encode, which uses libxml

ActiveRecord does more complex things internally and since the performance of #to_xml using the ruby implementation there was acceptable for my purposes, I did not pursue that. Anyone with patches and tests can send a pull request.

Clone this wiki locally