Changing ActiveRecord serialize format to XML instead of YML

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs