XmlSerializer and bloated formatted XML

  • Thread starter Thread starter Michael Per
  • Start date Start date
M

Michael Per

I'm using the XmlSerializer to serialize an object to an xml file. When
I look at the file I see that the xml produced is nicely formatted for
a human eye. It has line breaks and indentations (as series of white
spaces). Unfortunately all these formatting niceties aren't free. An
xml that would normally take ~33Mb takes ~58Mb. So here's my question:

Is there an option to make XmlSerializer produce tight xml with no line
breaks or indentations?

P.S. Using the framework 1.1
 
Hi,

Michael said:
Found the solution, Please disregard.

It's usually a good practice to post the solution when one finds it.
This avoids that others have to ask again, they can then find the
solution in the NG's archives.

Greetings,
Laurent
 
Back
Top