How can I get the HTML or DOM from a webpage with XML?

  • Thread starter Thread starter needin4mation
  • Start date Start date
N

needin4mation

Used to I could use XMLHTTP Request, but I cannot do that anymore (I
think) with C# .net. Here is what I tried, but it of course failed:

string strXMLsrc = "http://www.somewebpage.com";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(strXMLsrc);
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
Response.Write(strXMLsrc);


I know I'm not really using the stringbuilder and stringwriter. I'm
not sure how here.

Thank you for any help. I just want to display the HTML of the page,
not display the page again. I will have to parse the HTML to find a
control on it, but that is another story. Thanks for any help.
 
Back
Top