1
Answer

Loading an xml file in the DOM object.

Administrator

Administrator

21y
4.4k
1
Iam working on a c# code that involves loading an xml file in the DOM object. Now the problem is for eg: XmlDocument xd = new XmlDocument(); xd.Load("Main.xml"); now this Main.xml file should be in the current directory where the main application runs. what if the Main.xml file is in some other directory? how can I get to some other directory to upload a file? please let me know how can I define a path where it uploads an xml file. Thanks, vspv
Answers (1)