loading an xml in web apps directory from a library dll

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-06-03T21:23:00Z Indexed on 2010/06/03 21:24 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml