Serialize Object To Clean XML

I hate all the junk that gets added when serializing object to XML, so here is a quick way to do it cleanly. Here is the dirty way:

The resulting XML looks like this: Here is a cleaner way: And the resulting XML looks like this: