473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Database vs XML document archive


I'm trying to understand the differences between a XML document archive
versus a relational data base.

What are their advantages and disadvantages?

- Hallgeir
May 13 '06 #1
3 1718
I've not looked under the hood of an XML document archive, but from my
casual reading and my working indirectly with with them:

* they are not relational databases
* they do not have support for SQL; "querying" capability is probably
limited to what the vendor provides in a proprietary API

I hope someone else will respond to your quest and provide a better
response than mine.

May 13 '06 #2
enrique wrote:
I've not looked under the hood of an XML document archive, but from my
casual reading and my working indirectly with with them:

* they are not relational databases
* they do not have support for SQL; "querying" capability is probably
limited to what the vendor provides in a proprietary API
Leaving aside the confusing issue of what "an archive" actually is,
I think your second point is unlikely: I would expect any current
XML storage system that has a search capability to use one of the
many XML search engines and provide an interface using XQuery. I
can't think of any good reason why "an XML document archive" would
need SQL support.

It is a mistake to expect to be able to use SQL to search information
which may not be meaningfully put into relational form. If you are
dealing exclusively with e-commerce data, where your XML is just a
verbose representation of traditional rectangular data (rows and cols)
then it is possible to map the features of SQL onto a relational
data model. But I contend that if your XML information is traditional
text documents, a relational model is probably not as useful as the
structural access provided in (for example) XSLT by XPath, and the
query access provided by XQuery.

[OP] I'm trying to understand the differences between a XML document archive
versus a relational data base.


An XML document archive is for storing XML documents.
A relational database is for storing relational data.
If your XML documents can be normalised to the relational model, or
if your relational data can be expressed adequately in XML, feel free
to use either system, otherwise pick the right tool for the job.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
May 13 '06 #3
enrique wrote:
* they do not have support for SQL; "querying" capability is probably
limited to what the vendor provides in a proprietary API


XQuery is intended to occupy this sort of role for data stored as an XML
document or infoset.

Some recent tools may be able to intermix SQL to explore logical
relationships and XQuery to explore structure. I *think* the most recent
release of DB2 can do that, since it's a full relational database with
an XML infoset datatype rather than only supporting one or the other.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
May 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Alexandre Plennevaux | last post by:
hello mates, my question is such: should i turn a 80 pages doc file into a database so that: - i can make it searchable through an online form - it can be modified and every modification...
0
by: Officer | last post by:
I want to setup standby database which reside on the same host with my primary database -dbSA is my primary and dbSB is my standby database. I select v$log as follows: SVRMGR> select...
3
by: Cristina | last post by:
Hallo i am a beginner into Oracle Technologies.I would like to make backup of my database,but i dont know how.Is there tools?Can i schedule the backup plan? thanks Cristina
1
by: AA | last post by:
I want to Deserialize this simple xml... ==================================================================== <SubmitReq...
6
by: geo | last post by:
hi, we have a problem with the db2uext2.exe under W2000 SP4 and DB2 V8 FP 4a. We copy the sample db2uext.cdisk to db2uext.c, compiled it with Microsoft Visual C++ Toolkit 2003 without errors....
2
by: PC User | last post by:
I have this code from a db of a previous version of access to archive a database, but I'm using A2K and it doesn't seem to work. Can someone help me? Code:...
16
by: janders | last post by:
Hey all, I've got a document that I want to ensure always get loaded into the top level document and not into a frame or iframe. I've got it figured out how to detect if the document is loaded...
3
by: mfaisalwarraich | last post by:
Hello Everybody, i have gone through various tutorials but i could not able to find any tangible solution for my problem. please tell me how i can archive a ms access database. if my database have...
2
by: Damir | last post by:
Hello, I have a strange problem with federated access between two DB2 databases, both on AIX 5, both instances V9.1 (FP02). For the sake of this post, the two DB2 databases are named: 1. "live"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.