File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes xml vs database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml vs database" Watch "xml vs database" New topic

xml vs database

ray bond
Ranch Hand

Joined: Oct 11, 2000
Posts: 111
in what cases xml is used instead of database , usually database is faster and big records can be stored and retrived , updated very fast with database then how xml can come near to datbase??
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
XML is essentially just a data transfer format, and has very little to do with storage, so you can't really compare XML with a database. Many systems use the two together, storing chunks of XML in the database, specifying database queries in XML, formatting retrieved data in XML and so on..
An XML file may be a better choice than a database if the data is small, fundamentally hierarchical and doesn't change much. This is why a lot of applications store their configurations as XML files.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Solomon Habtom

Joined: Jan 13, 2001
Posts: 5
Hi folks ,
I don't see any reason Y XML can't replace databases.Some of the conserns can easily get answered soon.I am not in to databases
well but after studying about XML .... I know It will be soon.
You got to also see CB analysis of the programms...
I agree. Here's the link:
subject: xml vs database
It's not a secret anymore!