Parsing : String to XML
<p>my API is supposed to take a string and typecast it to XML format.</p>

<p>But i am consistently getting this error :</p>

<blockquote>
  <p>ParseError: mismatched tag: line 1, column 764</p>
</blockquote>

<p><strong>XML</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;MasterDetails IssuerId="5" Version="12.2"&gt;
    &lt;XMLRequest /&gt;
    &lt;BookingDetails  Amount="768"  Comment="Hotel Travel Purchase"  CurrencyCode="INR"  PurchaseType="Hotel"  SupplierName="SomeHotel"  CardAlias="C_ALIAS"  ValidFor="-1D"  CurrencyType="B" /&gt;
    &lt;CDFs&gt;
        &lt;CDF FieldName="Order Date" FieldValue="2015-01-01" /&gt;
    &lt;/CDFs&gt;
    &lt;SomeTag&gt;
        &lt;Rule Action="A" Alias="MyAlias"&gt;
            &lt;Controls&gt;
                &lt;OPMCCControl Negate="False"/&gt;
                &lt;OPMIDControl /&gt;
                &lt;SomeControlsTags       CumulativeLimit="768"       MaxTrans="None"                 Period="C" /&gt;
                &lt;ValidityPeriod           ValidFrom="2015-01-01 00:00:00.0 +0000"          ValidTo="2015-01-11 00:00:00.0 +0000" /&gt;
            &lt;/Controls&gt;
        &lt;/Rule&gt;
    &lt;/SomeTag&gt;
&lt;/BookingDetails&gt;
&lt;Email  EmailAddress="T@J.COM"/&gt;
&lt;MasterDetails /&gt;
</code></pre>

<p><strong>Implemented via :</strong></p>

<pre><code>tree = ET.ElementTree(ET.fromstring(kk.strip()))
</code></pre>

<p>I know for sure that my XML string is containing all matching tags and is formatted but still something might be missing infront of my eyes!!</p>