Webservice
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
I'm writing a webservice to look up the information of Person stored in file Data.xml. This xml file is stored in App_data folder. The following source code to read xml file: XmlDocument doc = new XmlDocument(); Boolean b = true; try { doc.Load("..\\App_Data\\Data.xml"); XmlElement xmlRoot = doc.DocumentElement; string xpath = "/dataroot/Data"; XmlNodeList node = xmlRoot.SelectNodes(xpath); int len = node.Count; for(int i=0; i