added a little utility class to convert IXmlSerializable to text