How .NET WebBrowser Control read XML Server response correctly?
<p>I am using a Web Browser control to allow user to login to the server from a desktop(Windows form) app. after successful response, the server sends the response as XML that contains Security token but i can't read this xml from the WebBrowser control. the browser control converts the XML to strange HTML that i can't processed.
Here is my Code:-</p>

<pre><code>var webBrowser = new WebBrowser
        {
            Dock = DockStyle.Fill
        };
        webBrowser.DocumentCompleted += webBrowser_DocumentCompleted;
        webBrowser.Navigate(url);

void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    {
        var browser = sender as WebBrowser;
        if (browser != null)
        {

            HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
            doc.LoadHtml(browser.DocumentText);
            var appNode = doc.DocumentNode.SelectNodes("//myTag");
        }
    }
</code></pre>

<p>and this is my XML that i received from the server</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;MyCustomXml&gt;
&lt;securityToken&gt;RETERET-SDSDSD-DSFSDFS-SDASDAS-ASDASDASDASD&lt;/securityToken&gt;
&lt;organizationUrl&gt;http://myOrganization.Com/&lt;/organizationUrl&gt;
&lt;/MyCustomXml&gt;</code></pre>
</div>
</div>
</p>