CMS-2810 Create class for serializing a Form as XML