title: Issue formatting xml data in python that is present as a string
body: <p>i have this string variable <code>res.text</code> that has XML content inside it, is there a way in python to format such data?</p>
  <pre><code>&gt;&gt; res.text
  '&lt;config&gt; &lt;header&gt;'abc'&lt;/header'&gt;&lt;/config&gt;'
  </code></pre>
  <p>the actual data i have is about 2000 lines, wanted to better view the data like below:</p>
  <pre><code>&lt;config&gt;                                                                                                                                             
     &lt;header&gt; 
       'abc'
     &lt;/header&gt;
  &lt;/config&gt;  
  </code></pre>