资 源 简 介
CustomXMLSerialization is a Ruby on Rails plug-in that allows you more freedom in how your model objects are serialized using the to_xml method in ActiveRecord::XmlSerialization. Your ActiveRecord subclasses can specify a complete custom serialization, without having to override to_xml in each object.
You can specify exactly which fields to include in a serialization, apply custom tag names, enclose data in CDATA constructs, and unwrap superfluous second-level associations into more brief first-level fields.
For more information and examples of usage, visit the overview page at http://code.google.com/p/custom-xml-serialization/wiki/Overview