title: Parsing XML from webbrowser control?
body: <p>I need to parse a XML file (which is generated by PHP) from a webbrowser control as the page I am trying to parse requires cookies to track some things. When I use something like:</p>
  
  <pre><code>string xmlURL = "urltophpfile";    
  XmlTextReader reader = null;
  reader = new XmlTextReader(xmlUrl);
  </code></pre>
  
  <p>to parse it, cookies aren't enabled so I need to use a webbrowser control or something which will allow me to use cookies.</p>
  
  <p>The problem I am having is that when I try to put the webbrowser text to a string (<code>string info = webBrowser2.DocumentText.ToString();</code> it gives the full source of the web page and therefore I can't parse it.</p>
  
  <p>Does anyone have any suggestions on how I can work this out please?</p>