aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML as database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML as database?" Watch "XML as database?" New topic
Author

XML as database?

Priya Bindra
Ranch Hand

Joined: Sep 22, 2009
Posts: 51
I am designing a website which is pretty much static. Readers of the website cant update anything on it. There will only be daily updates on the website from server side. Since my website is more about displaying content which has a preset format, i was thinking of using XML as database. But i dont know where to start from? Should i store data as .xml flat files? what abt ACID requirements then? I did have a look at some XML DBs such as baseX and eXist. But dont know whether to use them?

Also, since my website is content based, i need to create a small search engine for it. This is another reason why i was thinking of creating DB in XML files.

Please guide abt a suitable DB for my website reuirements....primarily search engine functionality and ease of updating content.
Oleg Tikhonov
Ranch Hand

Joined: Aug 02, 2008
Posts: 55
Might be it what you're looking for xindice

Cheers,
Oleg.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

Are you delivering the content as XML? Are you going to transform it using something like XSLT? If the answer to these questions is no, then I think it's a bad idea. Just store the data in a database. Otherwise, you're going to add the overhead and reading the XML, parsing it, and post-processing the data every time it is accessed. Databases are already optimized for I/O, much better than you could probably do on your own.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML as database?
 
Similar Threads
Dual language website with data from db
Help regarding XML Parsing
Bombay Placement Agencies
Website
XML attributes serialization