This project has moved and is read-only. For the latest updates, please go here.

why some html pages does not turn to XML with Html Agility ??

Topics: Developer Forum, Project Management Forum, User Forum
Jan 5, 2013 at 1:10 PM


           StringBuilder sbXml = new StringBuilder();
            StringWriter sw = new StringWriter(sbXml);
            XmlTextWriter tw = new XmlTextWriter(sw);
            HtmlWeb htmlWeb = new HtmlWeb();
            htmlWeb.LoadHtmlAsXml("", tw);
            richTextBox1.Text = sbXml.ToString();