I did a CMS framework for a newspaper in Java, using the Spring J2EE
There, I created an XML DAO layer, and then had XMLbean NewsML business
objects instantiated by the controller accessing the DAO layer (which
to an Xindice server!).
(By the way, it’s been working in production for ages, stable as heck…
WISH RAILS 1.0 HAD BEEN THERE THEN… took me months to develop, instead
sprite action that would have been a heck of a lot simpler!).
The great thing about treating the persistent XML (whether files, a
like XIndice, etc.) as a data access layer meant that if later I decided
use MySQL or Berkeley XML database, I would only have to modify that
On Rails, just simply have your controller instantiate a business object
model class) that knows how to read/write XML from/to flat files. This
be by invoking a library, or, to get more sophisticated, by writing a
access adapter for flat XML files (ActiveRecord/ConnectionAdapters) (my
Rails ignorance prevents me from knowing whether this already exists as
third party; the API doesn’t mention any).
Hope that helps.
Date: Mon, 20 Mar 2006 10:37:36 -0500