How should I generate HTML to represent class and its properties?
<p>Currently I have a class that represents a document.  This document needs to be displayed as HTML.  I would like to have a method to call such as <code>GetHTML()</code> that would then call <code>GetHTML()</code> on any properties/sections of the document that needed to be rendered.  I was initially thinking about using linq and <code>XElement</code> but am wondering if that may cause issues with certain tags in HTML.  Would I better off using an <code>HtmlTextWriter</code>?  I am open to any suggestions or best practives for this situation.  Thanks!</p>
