Last post Nov 16, 2014 08:37 PM by Fei Han - MSFT
Nov 13, 2014 08:59 AM|asad_dba|LINK
I am developing asp.net web and as I have some tables like branches or cities , I am thinking to store them in XML file and attached them to project and access them from asp.net, I am seeking for best practices its a best practices, or each time I will
get them from database .please help me with your opnion is best way
Nov 13, 2014 09:21 PM|Fei Han - MSFT|LINK
Thanks for your post.
We could use DataSet.ReadXml Method to read XML schema and data into the DataSet as below.
DataSet ds = new DataSet();
For more information about DataSet.ReadXml Method, you coul check the following link.
Besides, you could refer to this article to store data into a XML file and retrieve data from it.
If you have any question about my reply, please let me know freely.
Nov 15, 2014 11:12 PM|asad_dba|LINK
thank you Fei Hans, for reply, which is best practices among both.
Nov 16, 2014 08:37 PM|Fei Han - MSFT|LINK
I am thinking to store them in XML file and attached them to project and access them from asp.net,
As for your problem, I recommend to use XmlDocument.Load Method. Because you need to create the child nodes and store data in XML file.