title: how to create new line after tag in xml serialization
body: <p>I use xml serialization to create my xml snippets. each serialization does not create linebreak at the end resulting in open tags following close tags. See example output below where the close tag  is followed in same line open tag <br>
  how can i force the serialization object to be in a new line?</p>
  
  <pre><code>    maxmumleewayinticks=Instrument.MasterInstrument.TickSize*2;
  
      string filename="c:\\temp\\Strategyxmlfile" + DateTime.Now.Ticks + ".xml";
      settings = new XmlWriterSettings();
      settings.Indent = true;
      settings.IndentChars = "  ";
      settings.NewLineChars = "\r\n";
      settings.NewLineHandling = NewLineHandling.Replace;
      settings.OmitXmlDeclaration = true;
      settings.CloseOutput = false;   
      writer= new StreamWriter(filename);
  
      ns.Add("", "");
     // write and close the bar
  
     XmlSerializer serializer = new        XmlSerializer(typeof( DecisionBar));
  
     w =XmlWriter.Create(writer,settings);
  
     serializer.Serialize(w, decision,ns);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&lt;DecisionBar EntryOrExit="ENTRY"&gt;
    &lt;mfe&gt;0.0001&lt;/mfe&gt;
    &lt;mae&gt;-0.0002&lt;/mae&gt;
    &lt;bartime&gt;2012-07-25T21:43:00&lt;/bartime&gt;
    &lt;frequency&gt;1 MINUTES&lt;/frequency&gt;
    &lt;HH7&gt;true&lt;/HH7&gt;
    &lt;crossover&gt;true&lt;/crossover&gt;
    &lt;currentprofitability&gt;0.0001&lt;/currentprofitability&gt;
    &lt;entryPointLong&gt;1.032&lt;/entryPointLong&gt;
    &lt;entryPointShort&gt;1.0308&lt;/entryPointShort&gt;
    &lt;exitStopFull&gt;1.031&lt;/exitStopFull&gt;
    &lt;exitStopPartial&gt;0&lt;/exitStopPartial&gt;
   &lt;/DecisionBar&gt;&lt;DecisionBar&gt; 
    &lt;mfe&gt;0.0001&lt;/mfe&gt;
    &lt;mae&gt;-0.0002&lt;/mae&gt;
    &lt;bartime&gt;2012-07-25T21:44:00&lt;/bartime&gt;
    &lt;frequency&gt;1 MINUTES&lt;/frequency&gt;
    &lt;HH7&gt;false&lt;/HH7&gt;
    &lt;crossover&gt;false&lt;/crossover&gt;
    &lt;currentprofitability&gt;0.0001&lt;/currentprofitability&gt;
    &lt;entryPointLong&gt;0&lt;/entryPointLong&gt;
    &lt;entryPointShort&gt;0&lt;/entryPointShort&gt;
    &lt;exitStopFull&gt;0&lt;/exitStopFull&gt;
    &lt;exitStopPartial&gt;0&lt;/exitStopPartial&gt;
  &lt;/DecisionBar&gt;
  </code></pre>