xmlclass/xmlclass.py
changeset 1304 6be6c1e0e4d0
parent 1303 908a5803c2cc
child 1305 714f1381a09a
--- a/xmlclass/xmlclass.py	Tue Sep 03 23:36:10 2013 +0200
+++ b/xmlclass/xmlclass.py	Tue Sep 03 23:39:22 2013 +0200
@@ -1654,6 +1654,12 @@
         etree.XMLParser.set_element_class_lookup(self, class_lookup)
         self.ClassLookup = class_lookup
     
+    def Dumps(self, xml_obj):
+        return etree.tostring(xml_obj)
+    
+    def Loads(self, xml_string):
+        return etree.fromstring(xml_string, self)
+    
     def CreateRoot(self):
         if self.BaseClass is not None:
             root = self.makeelement(