title: xmlwriter write elements in one line
body: <p>I tried to save some elements from my application in xml file but when I started to develop it  using this code :</p>
  
  <pre><code>public static void WriteInFile(string savefilepath)
          {
              XmlWriter writer = XmlWriter.Create(savefilepath);
              WriteXMLFile(writer);
  
          }
  private static void WriteXMLFile(XmlWriter writer) //Write and Create XML profile for specific type 
          {
              writer.WriteStartDocument();
              writer.WriteStartElement("cmap");
              writer.WriteAttributeString("xmlns", "dcterms",null, "http://purl.org/dc/terms/");
              writer.WriteElementString("xmlns", "http://cmap.ihmc.us/xml/cmap/");
             // writer.WriteAttributeString("xmlns","dc",null, "http://purl.org/dc/elements/1.1/");
              //writer.WriteAttributeString("xmlns", "vcard", null, "http://www.w3.org/2001/vcard-rdf/3.0#");
              writer.WriteEndElement();
              writer.WriteEndDocument();
              writer.Close();
          }
  </code></pre>
  
  <p>I found that the output in notepad are in one line like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;cmap
  xmlns:dcterms="http://purl.org/dc/terms/"&gt;&lt;xmlns&gt;http://cmap.ihmc.us/xml/cmap/&lt;/xmlns&gt;&lt;/cmap&gt;
  </code></pre>
  
  <p>I want it appear as multiline like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;cmap
  xmlns:dcterms="http://purl.org/dc/terms/"&gt;&lt;xmlns&gt;http://cmap.ihmc.us/xml/cmap/&lt;/xmlns&gt;
  &lt;/cmap&gt;
  </code></pre>