Add class to build an xml document