I need to read the XML file from App_Data to MVC3 according to the action the user is currently accessing.
<xml> <actions> <item action="index"> <add url="www.stackoverflow.com" description="This site it for learning purpouses" /> </item> </actions> </xml>
What would be the best way to get this <item> according to the user of the action he is accessing?
EDIT
I forgot to mention that only one controller can access XML. So the file name is [controller] .xml
Guilherme David da Costa
source share