CMS-2809 Create class for serializing a ContentType as XML

*** MERGEABLE ***