How to retrieve the XML file which is under the project folder

Posted by Vara Prasad.M on Stack Overflow See other posts from Stack Overflow or by Vara Prasad.M
Published on 2010-06-17T04:54:08Z Indexed on 2010/06/17 5:13 UTC
Read the original article Hit count: 208

Filed under:

I having an XML file and that file is under the Documents folder. If I actually give the entire path in C# then I am able to retrieve the XML values, but if I give the project path then it is not getting the values.

For example:

string fileNamePath=ConfigurationManager.AppSettings["XMLDocPath"].ToString() + fileName;
m_xmld.Load(fileNamePath);

It is throwing a runtime error.

© Stack Overflow or respective owner

Related posts about Xml