I am using the following syntax
XDocument config = XDocument.Load(@"path to the xml file");
But i am inlcuding this statement in the c# code.I want to make the path configurable like
declare a key in the web.config file of the application with the name path and i should be able to get that in the c# code
by xdocument cofnig =xdocument.Load(path).
Is it possible this way ?
Perhaps it would be sufficient to do the usual:
This assumes an web.config which contains: