XML Files and Database

Hi,

I am developing a GUI tool for reports. I first show the user with a GUI using which he will build the query and generate the results with the query. Now he will save the results.These results can be used as reports by another GUI. Option one is I want to save these results in XML file and retrieve it with the XML parser as reports. The other option is saving the results in DB and retrive it with the JDBC API. I think XML is faster than making connections to the DB to first save and retrieve. Can anyone suggest which is appropriate and why.

Thanks,

Ashok Vytla

[595 byte] By [ashokvytlaa] at [2007-10-2 0:47:48]
# 1

Hi,

By writing the results to the XML file you are saving a database hits which will improve your performance but you should use abtsract factory here so that in case you want to get the values from database by just passing a parameter to the factory you can get the choice to search XML file or database.

khindria at 2007-7-15 17:57:46 > top of Java-index,Other Topics,Patterns & OO Design...