(I'm not reading everything in this forum, however I'd like to comment on this entry
)
Fabrice wrote:
I've not a lot of time to make the test
But I've look at the xml generated by the writeXML function
It take a lot of place because :
1) It generate a lot of lines for empty collection, so an entity with a lot of relations will always be bigger than the same entity in a typed dataset.
Why unfetched collection are serialized in XML ? I don't see any utility, maybe you can tell me some (Otis?).
Because the XML can now be used in generic XML processing logic which always works on collections, without having different codepaths for empty and not empty collections.
2) It generate type for each property, for example :
<IsReadOnly Type="System.Boolean">False</IsReadOnly>
why not only
<IsReadOnly>False</IsReadOnly>
Why not find the type by reflection ? all informations are allready present in the assembly, on the server & client side, I don't see why it have to be included in the serialization.
Because when you process the XML further, for example first via an XSL template and then again with an XML consuming piece of code, you still know what the type is of the data of a tag. The XML is usable without falling back on the classes. That was the intention, and that's why the XML is somewhat verbose for some purposes, and full of useful information for other purposes.