Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Database schema from standards xsd

From: Boris Kolpackov <boris@-------------.--->
To: Mansour Al Akeel <mansour.alakeel@-----.--->
Date: 4/3/2008 1:51:00 PM
Hi,

Mansour Al Akeel <mansour.alakeel@g...> 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

From boris@c... Thu Apr 03 10:20:04 2008
Received: from lisa.w3.org ([128


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent