Ruby Forum Ruby on Rails > Changing ActiveRecord serialize format to XML instead of YML

Posted by Glenn (Guest)
on 05.05.2008 23:54
(Received via mailing list)
Hello,

So far, ActiveRecord serialize is working great for me to save
arbitrary data.
I would like to know if there is a way to change the format of
ActiveRecord serialize to XML instead of YML.

I like the readability of YML, but I need to search serialized fields
in the database.
So, it would make sense to use XML because most database vendors
supports XML value extraction, e.g,. ExtractValue function in MySQL.

Please let me know if there is a way to configure to XML.
Thanks in advance.

Glen