Re: Xml and Object Database

Michael Kay (M.H.Kay@eng.icl.co.uk)
Thu, 3 Dec 1998 18:22:51 -0000


-----Original Message-----
From: Prashanth K. Salur <xmldoubts@hotmail.com>
>While creating an Object database for an XML file, is it advisable to
>store just the root node of the XML file or store each node of the XML
>file seperately.

Depends what you want to achieve! The obvious way to store an XML document
in an object database is to take a typical DOM implementation (e.g.
Docuverse's) and make each object persistent. However, that level of
granularity may be overkill. The opposite extreme is to store the XML
document as a string in a single persistent object. If you are clever, you
can hide your implementation choice, providing the same interface in both
cases.

Mike Kay