angular2 posting XML type request data using HTTP
<p>I am able to post the JSON request data to server in the following way, but how do i post XML structured data to server using http.</p>

<pre><code>getAuthSeed(value) {
        let params = "{'validateUsr': 'false'}";
        let headers = new Headers();
        headers.append('Content-Type', 'application/json');
        headers.append('params',  params);

        let url = 'tab-api/login/'+value.username+'/seed/false';

        let options = new RequestOptions({
            method: RequestMethod.Get,
            url: url,
            headers: headers
        });

        return this.http.request(new Request(options)).map(
            result =&gt; {
                let data = result.json();
                return data;
            }
        )
    }
</code></pre>

<p>sample XML request:</p>

<pre><code>&lt;pi:ReqPay xmlns:pi="http:schema/"&gt;
  &lt;Head ver="1.0" ts="" orgId="" msgId=""/&gt;
  &lt;Meta&gt;
    &lt;Tag name="PAYRE" value=""/&gt;
  &lt;/Meta&gt;
  &lt;Txn id="" note="" custRef="" refId="" refUrl="" ts="" type="PAY|COLLECT"&gt;
   &lt;RiskScores&gt;
     &lt;Score provider="ci" type="TXNRISK" value=""/&gt;
   &lt;/RiskScores&gt;
   &lt;Rules&gt;
    &lt;Rule name="MINAMOUNT" value=""/&gt;
   &lt;/Rules&gt;
 &lt;/Txn&gt;
&lt;/pi:ReqPay&gt;
</code></pre>