Difference xml and database

Hi,I can store certain data as xml format or as a database table.Can you please tell me which is more efficient and why?thanks and regards,Sahil
[179 byte] By [Sahilalia] at [2007-10-2 0:51:17]
# 1

Hi Sahil,

It depends on what you exactly want to do with the stored data.Ofcourse if its just storing the data and retrieving in the same application/format then u can opt for a database .

XML was designed basically to carry data.

If you need use the data in another application which might not recognise the existingformat / format of ur database then u need to manually do the transformation.To avoid this overhead xml is used in the scenario.Furthuremore , there are added advantages like ease in presentation/formatting using stylesheet languagesetc.....

Suggested link:

www. w3schools.com

ksk_kska at 2007-7-15 18:10:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks.regards,Sahil.
Sahilalia at 2007-7-15 18:10:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...