XmlSerializer and bloated formatted XML

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
 
L

Laurent Bugnion [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top