title: Angular2 typescript - print pretty XML
body: <p>I have this following XML string I got from the server:</p>
  
  <pre><code>&lt;find-item-command xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" find-method="Criteria" item-class="com" only-id="false" xsi:schemaLocation=""&gt; &lt;criteria&gt; &lt;criterion&gt; &lt;descriptors&gt; &lt;descriptor&gt;DPSystemEventItem&lt;/descriptor&gt; &lt;/descriptors&gt; &lt;value&gt;cluster.manager.active&lt;/value&gt; &lt;/criterion&gt; &lt;/criteria&gt; &lt;/find-item-command&gt;
  </code></pre>
  
  <p>But I want to beautify it in my module:</p>
  
  <pre><code>&lt;find-item-command
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" find-method="Criteria" item-class="com" only-id="false" xsi:schemaLocation=""&gt;
      &lt;criteria&gt;
          &lt;criterion&gt;
              &lt;descriptors&gt;
                  &lt;descriptor&gt;DPSystemEventItem&lt;/descriptor&gt;
              &lt;/descriptors&gt;
              &lt;value&gt;cluster.manager.active&lt;/value&gt;
          &lt;/criterion&gt;
      &lt;/criteria&gt;
  &lt;/find-item-command&gt;
  </code></pre>
  
  <p>What is the best way to print it beautified?</p>