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 XML File
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K pointsPosted Oct 26, 2008, 1:12 PM EDT
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(
Alex Brown13 pointsPosted Oct 26, 2008, 2:09 PM EDT
Bechir BejaouiRank #144 · 15.9K pointsPosted Oct 30, 2008, 4:17 AM EDT
Alex Brown13 pointsPosted Oct 30, 2008, 4:25 AM EDT
ideally i would like to embed it in a resource...
how can i do this?
Bechir BejaouiRank #144 · 15.9K pointsPosted Oct 31, 2008, 3:46 PM EDT