I am trying to return an html string from a method in a class library (don't ask why). What i would like to do within the method is get an instance of a POCO from my domain, then open an html document (maybe from a file or maybe it is a string from somewhere else), then pass the POCO to the document (which has bindings to the POCOs properties), then output the resulting html.
Is there a nice wrapper to get this done in the .NET framework? I saw this article on the HtmlDocument class, but was hoping to avoid all the direct element access and assignments:
http://msdn.microsoft.com/en-us/library/system.windows.forms.htmldocument.aspx