PDA

View Full Version : Effective XML citation



DouglasAWh
December 13th, 2007, 06:12 PM
Our library here at UNC does not have the book Effective XML, so I was wondering if anyone could verify the citation used at http://weblogs.asp.net/sbchatterjee/archive/2003/11/22/39257.aspx.

Here's the text I'd like to cite:


I received 'Effective XML' a few days ago and here is an interesting excerpt (pg 230) -

“XML is not a database. It was never meant to be a database. It is never going to be a database. Relational databases are proven technology with more than 20 years of implementation experience. They are solid, stable, useful products. They are not going away. XML is a very useful technology for moving data between different databases or between databases and other programs. However, it is not itself a database. Don't use it like one.“

aks44
December 13th, 2007, 09:18 PM
I can't verify the citation, but let me anyway give my thoughts about that...


XML as in (full) DOM tree and/or flat (structured) text is indeed not meant to be a database (not more that unstructured flat text files are meant to, anyway). It would be either too slow or too memory hungry.

BUT

A few database engines have already showed that XPath / XQuery can be amazingly useful tools to query structured data. Plus when it comes to OOP, serialization & persistence become totally straightforward. I've not had the opportunity yet to use such a technology in a production project but from the little I've toyed with that, it is *very* promising IMHO.



Back to the citation: XML-DB may not (??) be a mature technology yet (at least not mature enough to handle critical data), but I'd bet it definitely *will* soon.

AZzKikR
December 14th, 2007, 09:56 AM
Our library here at UNC does not have the book Effective XML, so I was wondering if anyone could verify the citation used at http://weblogs.asp.net/sbchatterjee/archive/2003/11/22/39257.aspx.

Here's the text I'd like to cite:

Let me tell you that I've worked with an XML database at my work. Full 4 Kb documents (or even larger) are put into that database, growing over 6 months to over 2 Gb. When I tried to run queries on it (XSLT/XPath), most of the time some address space or memory issue occurred because of God knows what.

In my honest opinion, XSL/XPath queries on an XML database can be very fast, simple and whatnot. Just not in this time of age, and I don't think any XML database will receive the status a relational database has these days.

XML is not designed to be a database. I hope it will never be, because I think the logic just does not speak for itself, whereas an object- or relational database is logical.

engla
December 14th, 2007, 05:57 PM
I'm not an industry guy, but I think I agree with the citation.

As I understand it, you cannot safely and correctly handle an XML file without visiting every tag in the document (*almost* every), otherwise the document and the part you want to reach might not be well-formed.

The purpose of an XML file is to be slurped into a database or (when smaller) into some other data structure; for example web browsers will do that for their bookmarks and desktop music apps for their library. But then the dataset is so small that it can be effectively slurped into the database at launch, and at random times be written out in full again. The key point of mine would be that you can't search or randomly access an XML file, it is just an intermediate data store.