What is the best way to build XML in C# code?
Please indicate your best practices for building XML using C#.  

My preference would be using [XML serialization][1], because: 

  - it gives an excellent abstraction of
    the data prior to serialization
  - it handles special cases (like
    quotes/special characters)
    automatically

But as I know there may be other (better) ways of doing this I'm curious to know what your preference is when building XML in C# and why.


  [1]: http://msdn.microsoft.com/en-us/library/ms950721.aspx
What is the best way to build XML in C# code?
===

Please indicate your best practices for building XML using C#.  

My preference would be using [XML serialization][1], because: 

  - it gives an excellent abstraction of
    the data prior to serialization
  - it handles special cases (like
    quotes/special characters)
    automatically

But as I know there may be other (better) ways of doing this I'm curious to know what your preference is when building XML in C# and why.


  [1]: http://msdn.microsoft.com/en-us/library/ms950721.aspx