Lists Home |
Date Index |
Yet another discussion of combining the models into a hybrid database.
I tried what Joe mentions. I agree with him; it's ugly. It did
sell me on the concept of namespaces.
From: Joe English [mailto:email@example.com]
Peter Hunsberger wrote:
> A more general comment/question: it recently occurred to me that it is
> likely possible to model any XML Schema as a relational schema (proof of
> this theorem is left as an exercise for the reader ;-)? Don't know what
> that gets you, but as I've said at least the tools abound...
It often gets you a really bad relational schema.
The relational model has a difficult time with things
like recursive elements (think of nested DIVs in HTML).
Element types with lots of optional attributes and repeatable
subelements get hairy when translated the relational model.
Mixed content is problematic too.
Another exercise for the reader: try modeling something
simple like HTML 2.0 (or for the really adventurous, something
more complex like DocBook) as a relational database.
It's probably doable, but I doubt you'd really want
to work with any database that was structured that way.