How can I extract and get the values from this response in C#
<p>Here is my code:</p>

<pre><code>private void button1_Click(object sender, EventArgs e)
    {
        var process = new com.globalpay.certapia.GlobalPayments();
        var response = process.ProcessCreditCard("xxxxxx", "xxxxxx", "Sale",
            textBox1.Text, textBox2.Text, "", "", textBox3.Text, "",
            "", "", "", "", "");

        MessageBox.Show("RespMSG: " + response.RespMSG
            + "\nMessage: " + response.Message
            + "\nAuthCode: " + response.AuthCode
            + "\nPNRef: " + response.PNRef
            + "\nHostCode: " + response.HostCode
            + "\nCVResultTXT: " + response.GetCVResultTXT
            + "\nCommercialCard: " + response.GetCommercialCard
            + "\nExtData: " + response.ExtData);
    }
</code></pre>

<p>The output goes like this:</p>

<p><img src="http://i.stack.imgur.com/G87IH.png" alt="enter image description here"></p>

<p>In the part of ExtData I got confused I do not know how can I extract those values like get the value of CardType, BatchNum, MID, TransID.</p>

<p>How can I possibly extract those values?</p>

<p>Any advice or suggestion how can I achieve this will be a big help. Thanks!</p>

<p>base on the doc of api:</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="GlobalPayments"&gt;
&lt;Result&gt;0&lt;/Result&gt;
&lt;RespMSG&gt;Approved&lt;/RespMSG&gt;
&lt;Message&gt;AP&lt;/Message&gt;
&lt;AuthCode&gt;000014&lt;/AuthCode&gt;
&lt;PNRef&gt;564286&lt;/PNRef&gt;
&lt;HostCode&gt;0032&lt;/HostCode&gt;
&lt;GetCVResultTXT&gt;Service Not Requested&lt;/GetCVResultTXT&gt;
&lt;GetCommercialCard&gt;False&lt;/GetCommercialCard&gt;
&lt;ExtData&gt;InvNum=1234567900,CardType=MasterCard,BatchNum=0011&lt;BatchNum&gt;0011
&lt;/BatchNum&gt;&lt;ReceiptData&gt;&lt;MID&gt;4910354&lt;/MID&gt;&lt;Trans_Id&gt;MCC1421250315
&lt;/Trans_Id&gt;&lt;/ReceiptData&gt;&lt;/ExtData&gt;
&lt;/Response&gt;
</code></pre>
