For more information on UTF8Encoding you may want to refer to MSDN at:UTF8EncodingFor explaining the concept of XML serialization I will create and use a demo class Animal with a number of properties that describe an animal such as name, length, weight, place of existence etc.