class DefinedObject(object):
    pass

@@ -1,8 +1,39 @@
+from StringIO import StringIO%0A%0A
 class De
@@ -57,13 +57,162 @@
 t):%0A
+%0A
     
-pass
+def to_xml(self):%0A        %22%22%22Export an object as an XML String%22%22%22%0A%0A        s = StringIO()%0A        self.to_obj().export(s, 0)%0A        return s.getvalue()
 %0A

Add utility method to DefinedObject base class