Hi SO,
I need to parse aspx, ascx, master files in an MVC project to an object model so that I can allow people to change particular parts and save the file back ~ A content management type of thing.
Is there anything in the framework to help me?
What I have tried.
- XDocument.Load: Cannot load the directives and inline code blocks
- GetCompiledPageInstance: created a MarshalByRefObject host and put it in the bin dir, created fine, but get errors when calling the function, probably something to do with MVC dependancies, it seems to be too painful to go this route.
I am just about to start on a custom parser, but wondered if someone had been down the same path and could give me a few pointers...