title: Download a XML file using TWebBrowser Delphi Component
body: <p>I don't know how to retrieve a XML content from TWebBrowser ActiveX component using Delphi.</p>
  
  <p>If the result is a HTML, I could use:</p>
  
  <pre><code> iall := (WebBrowser1.Document AS IHTMLDocument2).body;
   while iall.parentElement &lt;&gt; nil do
   begin
     iall := iall.parentElement;
   end;
   memo1.Text := iall.outerHTML;
  </code></pre>
  
  <p>But the URL returns a XML file and .body returns nothing. </p>
  
  <p>What is the missing part for the code below??</p>
  
  <pre><code>var S:String;
  begin
     WebBrowser1.Navigate('http://192.168.0.35:8000/api/');
     if Assigned(WebBrowser1.Document) then
     begin
       Doc := (WebBrowser1.Document as IHTMLDocument2);
       XMLText := ???
     end;
  end;
  </code></pre>
  
  <p>Remark: I could not use Indy HTTPClient component because the program will run on different proxies configurations and it will be difficult to deal with many configurations.</p>