I have an Asp.Net 4.0 Dynamic Data website with a LINQ to SQL data context. One of the columns in the SQL Server database is NVARCHAR(MAX) and contains an XML fragment. I have mapped this to XElement in the .dbml file. I have added metadata for the class with a UIHint for the property and I have written a Custom Field template that shows the XML contents in a TreeView. Much like I have an Asp.Net 4.0 Dynamic Data website with