summaryrefslogtreecommitdiff
path: root/python/libxml.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/libxml.py')
-rw-r--r--python/libxml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/libxml.py b/python/libxml.py
index 588e862..bde8aba 100644
--- a/python/libxml.py
+++ b/python/libxml.py
@@ -231,6 +231,8 @@ class xmlCore:
self._o = _obj;
return
self._o = None
+ def __str__(self):
+ return self.serialize()
def get_parent(self):
ret = libxml2mod.parent(self._o)
if ret == None: