W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2008

Re: Database schema from standards xsd

From: Boris Kolpackov <boris@codesynthesis.com>
Date: Thu, 3 Apr 2008 11:51:02 +0200
To: Mansour Al Akeel <mansour.alakeel@gmail.com>
Cc: xmlschema-dev@w3.org
Message-ID: <20080403095102.GA20089@karelia>


Mansour Al Akeel <mansour.alakeel@gmail.com> writes:

> Is there a way that I can transform these xml sxhemas to database
> schema and use an orm mapping and/or xml binding to process the
> objects.

One approach would be to use an XML database with an XML data binding
layer generated from your schemas on top of it. A big advantage of
this setup is that you can use various query mechanisms (e.g., XPath,
XQuery) normally provided by XML databases in addition to the object
model. For example, you can select a subset of XML documents or a
subset of elements in a particular XML document based on some criteria
using XPath and then work on the results using the object model.

If the integration is tight then this can also be quite efficient
in that instead of DB-to-XML and XML-to-OM (OM for object model),
in a tightly-integrated setup it can be just DB-to-OM. For example,
our CodeSynthesis XSD[1] works on top of Berkeley DB XML[2]. DB XML
exposes XML data as DOM fragments and XSD-generated object model can
load/store from/to these DOM fragments. You can get an idea on how
the application code might look like from this guide:


[1] http://www.codesynthesis.com/products/xsd/
[2] http://www.oracle.com/database/berkeley-db/xml/index.html


Boris Kolpackov, Code Synthesis Tools
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde
Received on Thursday, 3 April 2008 10:10:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:46 UTC