[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Database schema

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>
Re: Database schema

Hi,

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:


http://www.codesynthesis.com/projects/xsd/documentation/cxx/tree/dbxml/


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

Boris

-- 
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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.