title: Having trouble taking out all the newline, tab, and carriage return between two tags
body: <p>I have been working on this for almost a day now. But I'm not able to take out all the newline, tab, and carriage return from ">" and "&lt;"</p>
  
  <p>This is a sample XML file I'm reading: </p>
  
  <pre><code>                &lt;Consequence_Note&gt;
                      &lt;Text&gt;In some cases, integer coercion errors can lead to exploitable buffer
                          overflow conditions, resulting in the execution of arbitrary
                          code.&lt;/Text&gt;
                  &lt;/Consequence_Note&gt;
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>&lt;Consequence_Scope&gt;Availability&lt;/Consequence_Scope&gt;
                      &lt;Consequence_Technical_Impact&gt;DoS: resource consumption
                          (CPU)&lt;/Consequence_Technical_Impact&gt;
  </code></pre>
  
  <p>My goal is to take out all the newline, tab, and carriage return from these two tag (> and &lt;). The only thing I'm able to achieve is to take out all the /n/t/r from ">" and "&lt;" when there's nothing in between the two tags. But I'm not able to take out all the \n\t\r when there's other character in between the two tags. </p>
  
  <p>I need help in how to have a regular expression that will take out all the newline, tag, and carriage return from ">" and "&lt;"</p>
  
  <p>For example:</p>
  
  <pre><code>                &lt;Consequence_Technical_Impact&gt;DoS: resource consumption
                      (CPU)&lt;/Consequence_Technical_Impact&gt;
  </code></pre>
  
  <p>What I would like to have is:</p>
  
  <pre><code>&lt;Consequence_Technical_Impact&gt;DoS: resource consumption (CPU)&lt;/Consequence_Technical_Impact&gt;
  </code></pre>
  
  <p>This is my code (I'm reading from a xml file):</p>
  
  <pre><code>String file = @"C:\Documents and Settings\YYC\Desktop\cwec_v2.1\cwec_v2.1.xml";
  var lines = File.ReadAllText(file);
  var replace = Regex.Replace(lines, @"&gt;([\r\n\t])*?&lt;", "&gt;&lt;");
  File.WriteAllText(file, replace);  
  </code></pre>