title: How to remove whitespace between tags of pseudo-XML
body: <p>I have some pseudo/ill-formed XML for which I need to remove the whitespace between tags.  Leveraging a <a href="https://stackoverflow.com/questions/6111712/how-to-remove-carriage-returns-newlines-spaces-from-a-string">very similar question</a>, if I have the following content:</p>
  
  <pre><code>  &lt;Username&gt;admin&lt;/Username&gt;
    &lt;Password&gt;123abc..@!&lt;/Password&gt;
    &lt;Item1&gt;this is an item&lt;/Item1&gt;
  </code></pre>
  
  <p>... how do I get the following output?</p>
  
  <pre><code>&lt;Username&gt;admin&lt;/Username&gt;&lt;Password&gt;123abc..@!&lt;/Password&gt;&lt;Item1&gt;this is an item&lt;/Item1&gt;
  </code></pre>
  
  <p>Below is what I've tried:</p>
  
  <pre><code>internal static class StringExtensions
  {
      internal static string SquashXml(this string input)
      {
          var squashed = Regex.Replace(input, @"\&lt;[\S\s]+\&gt;([\r\n\t]+)", String.Empty);
          return squashed;
      }
  }
  </code></pre>
  
  <p>There's something wrong with the Regex (I think), but I can't pinpoint it.  This is the output I get:</p>
  
  <pre><code>&lt;Item1&gt;this is an item&lt;/Item1&gt;
  </code></pre>