Hi I have a xml in my Windows forms application. I am tring to get a node value. It is pretty basic and a lot of ways to get it I know but the wuestion is my xml not even loading. When I debug, after this line
xml.LoadXml(xmlPath);
program refuses to go to next line at all.Here is my full code.
XmlDocument xml = new XmlDocument();
string xmlPath = "settings.xml";
xml.LoadXml(xmlPath);
txtPass.Text = xml.SelectSingleNode("settings/user-settings/pass").InnerText.ToString();
Edit : I also tried xml.Load() but I have the same issue.