Query 1:
I have a web app with an xml file of 100 lines approximately; When my web app is running, I need to write values in that xml file(twice) and read values from that application many times; Once all values are updated in xml file, I tried to read the values in 2 ways,
I will de-serialize the xml file and store all the values in a static object and use it in my web app;
Each time when I need data, I will parse exactly to the respective xml element and get the value;
My doubts:
If I go with first approach, is holding values in a static object, a wrong approach which may cause memory consumption?
If I follow second approach, I frequently parse xml file; Is this right instead?
Please tell which is the correct approach for my use case;
staticvariables is generally worst option to implement caching , especially in ASP.Net.