title: Changing empty XML elements to elements with self-closing tags
body: <p>I have a few (~5) large (~1000 lines) XML files with many elements like this:</p>
  
  <pre><code>&lt;Foo Bar="Baz"&gt;
  &lt;/Foo &gt;
  </code></pre>
  
  <p>I want them all to become like this:</p>
  
  <pre><code>&lt;Foo Bar="Baz" /&gt;
  </code></pre>
  
  <p>Is there a tool or script that will do this for me automatically? Note: some elements aren't empty and shouldn't be changed to self-closing tags; there are only about 5 distinct element names I care about.</p>