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

Re: Xml and Object/Relational Database

  • From: "Steve Muench" <SMUENCH@u...>
  • To: xml-dev@i...
  • Date: 03 Dec 98 12:26:58 -0800

object relational database
In Oracle8i we're taking a approach to allow developers
the flexibility of storing XML Documents in any way they
choose along the spectrum of:

Single, Indexed text-BLOB ==> Fully Expanded into Foreign-Key linked Tables

The middle ground is that highly structured data gets mapped into
a set of related tables and structured text markup doc fragments
get mapped into text-BLOB's.

The simple example I use to show off why this might be interesting
would be to consider an Insurance Claim XML document like:

<?xml version="1.0"?>
      <Payee>Borden Real Estate</Payee>
    A massive <Cause>Fire</Cause> ravaged the building and
    <Casualties>12</Casualties> people were killed. Early
    FBI reports indicate that <Motive>arson</Motive> is

If you map the settlement payment sections into tables and columns
and the DamageReport doc fragment into a text blob, then you can
query over your datawarehouse of Insurance Claims to answer a
question like:

"How much money has Jim Cox approved to date in settlement
 payments for arson-related fire claims? "

Using a straightforward SQL statement like:

SELECT SUM(csp.Amount)
  FROM Claim_Header ch,
       Claim_Settlements cs,
       Claim_Settlement_Payments csp
WHERE csp.Approver = 'JCOX'
   AND CONTAINS (DamageReport, 'Arson WITHIN Motive') > 0
   AND CONTAINS (DamageReport, 'Fire WITHIN Cause'  ) > 0
   AND . . . /* Join Clauses */

We're participating in the W3C Query Language workshop today and tomorrow
(as well as follow-on W3C XML Query work) to help shape the eventual W3C
standard syntax for XML document queries. In the future, you may have
alternative syntaxes to answer the same questions of your enterprise
information, but this is our near term game plan.

 Steve  | Consulting PM & XML Technology Evangelist | smuench@o...
 Muench |      Java Business Objects Dev Team       | geocities.com/~smuench

                Oracle XML Homepage http://www.oracle.com/xml

  • From: Kacper Nowicki <kacper@o...>
  • To: "Prashanth K. Salur" <xmldoubts@h...>, xml-dev@i...
  • Date: 03 Dec 98 11:19:42
At 07:48 AM 12/3/98 -0800, Prashanth K. Salur wrote:
>Hi All,
>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.

It depends on what you plan to do.
If you want to run a query on XML document content, you'll be better off
storing each node separately.

If you will send this document to other recipent without any processing, I
guess you can store it as a (Unicode) String.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.