Like I said,
space efficient XML is compressed XML (not XML per se, but it is the standard approach)
Consider using compression. In a webserver setting, most browsers support gzip encoding transparently out of the box. So this applies to your garden-variety XML Ajax responses as well
Otherwise, implement IXmlSerializable Interface so you can control exactly how things are serialized.
I remember seeing a number of nice articles, e.g.
- How to Implement IXmlSerializable Correctly
- Cannot find the 'good' article (my a wellknown MVP community person... don't remember right now. Chris Sells?) Here is an alternative article combining LINQ-to-XML with IXmlSerializable