In which situation use of XML file is useful [Resolved]

Posted by Ray.chayan under XML on 6/22/2010 | Views : 3728 | Status : [Member] | Replies : 4
In which situation use of XML file in asp.net application is useful. Please provide me some practical example also,,,,,,,




Responses

Posted by: Deeraj on: 6/23/2010 [Member] Starter

Up
0
Down

Resolved
Here is a realtime use to eliminate DB hits.

Assume am validating a ZIP code (Server Side) that ensures that the user entered ZIP code is available in my ZIPCodes table in some X database. ( An arbitrary business requirement).

Now assume I have 100,000 customers hitting my website every 2 hrs (not realistic but possible. Consider this scenario for the reasons of explanation). The database may get hammered 100,000 times every 2 hrs. The database may also need to serve other requests apart from the one under discussion. So, database is a busy for most of the time.

Presuming that ZIPCodes dont change often or they dont change for ever, I would export the ZipCodes to an XML file and have it somewhere secure as part of the web-application. Now, the validation is done against the XML file and not the database.

So, we might endup eliminating 100,000 hits to the database, in which case the database is open to serve other requests.

There are other possible uses too! But this should just give you a jist of the power xml has.

Hope that helps!


Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 6/22/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
You can use XMl to import data into your system and Export out of the system. This will make you application easier to interact with other application written in different languages. It depends on a Developer too, some prefer to bind grid with XML and some choose with objects.

Kind Regards

Vuyiswa


Thank you for posting at Dotnetfunda
[Administrator]

Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ray.chayan on: 6/22/2010 [Member] Starter

Up
0
Down
Could you please explain it little more.

Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ray.chayan on: 6/23/2010 [Member] Starter

Up
0
Down
Thanks Deeraj, this is really very real life example of XML uses. Please provide me any other possible use of XML file to clear my concept completely..

Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response