Xml Serialization Problem for 60mb file
<p>I want to Serialize a 60mb file into XML but it gives me System out of memory exception.
Did any one else had this kind of problem? </p>

<p>Can someone suggest me a workaround for this problem.</p>

<p>Here is the method</p>

<pre><code>   static public string Serialize(object obj)
   {
          string returnValue;
          System.Xml.Serialization.XmlSerializer xmlWriter = new System.Xml.Serialization.XmlSerializer(obj.GetType());
          System.IO.StringWriter xmlOut = new System.IO.StringWriter();

          //this is where the problem is.....
          xmlWriter.Serialize(xmlOut, obj);
          //return the Serialized XML
          returnValue = xmlOut.ToString();
          xmlOut.Close();
          return returnValue;
   }
</code></pre>
