I am trying to read a xml file using c#
XmlDocument doc = new XmlDocument();
doc.Load(@"/Rules/AssessmentRule.xml");
XmlNode node = doc.SelectSingleNode("/RuleName");
string URI = node.InnerText;
return URI;
I kept breakpoints in 2nd and 3rd line. I get error in the line below
doc.Load(@"/Rules/AssessmentRule.xml");
It says
Could not find a part of the path 'C:\Program Files\Rules\AssessmentRule.xml'.
The folder structure of my project is, it is having the Rules folder in the same place as my class file