I would like to open an HTML document (as a string received from StreamReader, from the Internet), creating an XMLDocument like this:
XmlDocument doc = new XmlDocument doc.Load(string containing the retrieved document).
But since the HTML document contains this chapter:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
He tells me that the document is invalid ... Any way around this?
source share