[Rails] "Database" as a collection of XML docs

Derrick Spell derrickspell at cdmplus.com
Tue Mar 14 13:37:50 GMT 2006


> Questions:
> - has anyone tried using Rails with a set of XML documents as "the
> database"?  If it's possible, what are the limitations?
> - what have you used to index content in the XML docs, and what are
> the pros and cons of the approach you used?
> - is it possible to use ActiveRecord to search XML docs on one or more
> key values?  Is it possible to do pattern matches (i.e. something
> equivalent to LIKE in SQL)?
> - is the whole idea dumb, and should I just load the data into e.g.
> Postgres and be done with it?
>
> Thanks in advance for any suggestions.  While I'm generally
> comfortable with Rails, dealing with a database of XML docs is new for
> me and I'm not quite sure how best to approach it.
>

Not dumb.  I agree with Josh, all you need is a new model layer.  As  
for getting LIKE functionality, perhaps you could use calls to grep?

-Derrick Spell


More information about the Rails mailing list