title: Batch-Script for formatting XML-files | Search for Strings and comment them out
body: <p>So I have a XML-File, which isn't formatted, meaning it only has one line. The problem I have is, I want to delete two lines or comment them out. </p>
  
  <p>Is there a way to format the XML-file using a batch-script, so if i have:</p>
  
  <pre><code>&lt;xml&gt;&lt;tag&gt;&lt;othertag&gt;&lt;/othertag&gt;&lt;/tag&gt;&lt;/xml&gt;
  </code></pre>
  
  <p>the output would be</p>
  
  <pre><code>&lt;xml&gt;
       &lt;tag&gt;
            &lt;othertag&gt;
            &lt;/othertag&gt;
       &lt;/tag&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>Alternatively, how can I replace/add Strings, when I only  have a pattern, and can't use findstr /v, because I only have one line? </p>
  
  <p>Thanks in advance!</p>