I am creating a class library, and i have created a folder called config in the solution directory. and i placed one xml in the folder.
How to load the xml file in my class functions?
I tried like below, its not loading
XmlDocument contentxml = new XmlDocument();
String configxmlfile = System.AppDomain.CurrentDomain.BaseDirectory.ToString() + "Config\\instruction.xml";
contentxml.Load(configxmlfile);
And I want to bind the xml file with the dll, becuase i am going to upload the dll in another application and i will call my classes from the dll, and my class will look for the xml file information there.
In order to Embed a xml to the assembly
Then you can read the xml from the assembly by the following code