Implemented XML serializer