title: Retrieve xml serialize output string to replace single quotes
body: <p>This is how im serializing an object. How to I retrieve the xml string to replace the single quotes?    </p>
  
  <pre><code>var settings = new XmlWriterSettings {OmitXmlDeclaration = true};
  
              settings.Encoding = Encoding.ASCII;
  
              var writer = XmlWriter.Create(writeStream, settings);
  
              var serializer = new XmlSerializer(value.GetType());
  
              var nameSpaces = new XmlSerializerNamespaces();
  
              nameSpaces.Add(string.Empty, string.Empty);
  
              serializer.Serialize(writer, value, nameSpaces);
  </code></pre>