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

RE: XML design of Database

Subject: RE: XML design of Database
From: Kevin Williams <Kevin.Williams@xxxxxxxxxxxxxx>
Date: Tue, 30 May 2000 13:04:01 -0400
representing xml in database
Liam R. E. Quin [mailto:liamquin@xxxxxxxxxxxx] wrote:

> Er, there is no one true definition, folks :-)

Speaking as someone else who has a XML database book forthcoming ;), Lee's
absolutely right on this one. While there are some guidelines that can be
used when representing XML documents in a database, blindly following them
can lead to serious performance and portability issues (viz. Lee's
waiting-an-hour-for-a-document example). It's important to consider how the
information is going to be used - are the details of the documents
important? Would it make more sense to keep the documents atomic outside the
context of the RDB and use the RDB as (essentially) an index into the
document repository? Would it make more sense to break part of the tree into
RDB structures and keep finer details as well-formed XML blocks stored as
text in the RDB, or as stand-alone fragments? 

The other problem is that XML documents don't necessarily lend themselves
directly to database representations. This is particularly true for
documents that represent marked-up text. For example, anyone designing a
database to support the following structure:

<!ELEMENT A (#PCDATA | B)*>
<!ELEMENT B (#PCDATA)>

will have a headache handling documents like this:

<A>
  <B>Here's some</B>text embedded <B>in</B> the A eleme<B>n</B>t
</A>

And heaven forbid you're trying to represent this:

<!ELEMENT A ANY>

The moral of the story? Do what makes the most sense, think the problem
through, and don't be afraid to break the "rules".

- Kevin

Kevin Williams
XML Architect
Ultraprise Corporation
co-author, Professional XML, Wrox Press 2000
co-author, ASP 3.0 Programmer's Reference, Wrox Press 2000
forthcoming: Professional XML Databases, Wrox Press 2000


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.