title: What does the SQL Server XML datatype translate to in .NET and how do I convert it to XmlDocument?
body: <p>We have a column in the database that has a type of <code>xml</code>. I am reading this information via the .net <code>SqlDataReader</code>, but I'm not sure what to cast it to. </p>
  
  <p>The msdn table (<a href="http://msdn.microsoft.com/en-us/library/cc716729.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/cc716729.aspx</a>) suggests that is of the .net type <code>Xml</code>, but there is no <code>System.Xml</code>, only <code>System.Web.UI.WebControls.Xml</code> so I'm not sure if that is correct. </p>
  
  <p>So my question is this:</p>
  
  <p>What do I cast the <code>SqlDbType.Xml</code> to as I'm reading it from a <code>SqlDataReader</code>, and how do I convert that to <code>XmlDocument</code>?</p>