I am facing a problem to getting a xml file in code.
I have a XML file named trial.xml in the same folder where the application's executable exist.
Iused the following Code
XmlDocument xd = new XmlDocument(); xd.Load("trial.xml");
It does not worked then I used
xd.Load("trial.xml"); XmlTextReader reader = new XmlTextReader("trial.xml"); XmlNodeList nodelst; nodelst = XmlDoc.GetElementsByTagName("detail");
It also not worked.
There is a error Occurs that directory or file not found.
Can anybody give me the solution of this Problem.
I hope you will help me.
Thanx in Advance