loading an xml in web apps directory from a library dll
- by Blankman
my web application has an xml file here:
/files/xml/test.xml
I need to load a XDocument from within a class library project, how will I reference the xml? I don't want to pass any path parameters to this method.
I want to assume the location is fixed at /files/xml/test.xml.
How can I load a XDocument know this?
I don't seem to have access to server.mappath either.