Channel9Downloader.DataAccess.WebDownloader.DownloadXHTML C# (CSharp) Method

DownloadXHTML() public method

Downloads the requested resource as XHTML. The resource to download is specified as a String containing the URI.
public DownloadXHTML ( string address ) : System.Xml.Linq.XDocument
address string The address of the resource to download.
return System.Xml.Linq.XDocument
        public XDocument DownloadXHTML(string address)
        {
            var downloadString = DownloadString(address);
            var textReader = new StringReader(downloadString);
            var doc = FromHtml(textReader);
            return doc;
        }