Each time I serialize an object using XmlSerializer I get a structure like
this:
<?xml version="1.0"?>
<MyType>
..
..
</MyType>
<?xml version="1.0"?>
<MyType>
..
..
</MyType>
Instead I would like
<?xml version="1.0"?>
<MyRootThatIWillWriteToTheStream>
<MyType>
..
..
</MyType>
<MyType>
..
..
</MyType>
</MyRootThatIWillWriteToTheStream>
So in other words, can I avoid writing the XML 1.0 decoration header each
time?
--
Thanks