title: DataSet serialization and OutOfMemoryException
body: <p>I've got a <code>DataSet</code> with about 250k Rows and 80 Columns causing <code>StringBuilder</code> to throw an OutOfMemoryException (@System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)) when calling .GetXml() on my dataset.</p>
  
  <p>As I read <a href="http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/10/10/stringbuilder-outofmemoryexception.aspx" rel="nofollow">here (last paragraph)</a> this can be overcome by using binary representation instead of xml, which sounds logical. 
  So I set the RemotingFormat-property on my dataset to binary but the issue still occurs. </p>
  
  <p>I had a closer look to the GetXml-implementation and there seems to be no distinction based on the RemotingFormat. Instead, I found out that GetXmlSchemaForRemoting considers RemotingFormat, but this method is internal so I can't call it from the outside. It is called by private SerializeDataSet which is called by public GetObjectData.
  GetObjectData itself seems to be for custom serialization. </p>
  
  <p>How can I binary (de-)serialize my dataset? Or call at least GetXml without throwing exceptions? Did I overlook any dataset property?</p>