Reading and Writing through XML File
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hello froum I am writing the elements to xml file on runtime,and also using them. It is working properly.
XmlDocument xmlDoc = new XmlDocument();
string path = AppDomain.CurrentDomain.BaseDirectory.Substring(0, AppDomain.CurrentDomain.BaseDirectory.LastIndexOf("bin\\")) + @"\XMLFind.xml";
xmlDoc.Load(path);
XmlNodeList xmlNS = xmlDoc.GetElementsByTagName("testword");The xml file is in the bin folder. but the problem is after creating setup the xml file is seen to every body so it can be deleted accidently. If the xml file is placed in the project then it gives the runtime error
Could not fine the C:\Program Files\hts\SetupFinal\XMLFind.xml.
can anybody help me... Regards Rahul Adya