Hi,
I have a class library in a solution, and have added an XML file to it.
In the solution, there is also a web project, and windows project. these 2 projects use the above mentioned class library for data-access / logic etc...
I'm trying to load the XML file in a class in my class library, but whats the path?
is it compiled into the assemblies?
any ideas much appreciated.
alex
Loading
Bechir BejaouiPosted Oct 31, 2008, 7:46 PM
Alex BrownPosted Oct 30, 2008, 8:25 AM
ideally i would like to embed it in a resource...
how can i do this?
Bechir BejaouiPosted Oct 30, 2008, 8:17 AM
Alex BrownPosted Oct 26, 2008, 6:09 PM
Bechir BejaouiPosted Oct 26, 2008, 5:12 PM
create an xmldocument instance then use the load method
xmldocument doc = new xmldocument();
doc.load(/*put the path here*/);
you could also do this
doc.loadXml(