if format == 'text':
self.dump_text(dump_parents)
elif format == 'xml':
- print self.save_to_string()
+ print self.save_as_xml()
elif format == 'simple':
print self.dump_simple()
else:
elif attrib_name in ['date created', 'last updated']:
print " %s: %s" % (attrib_name, self.date_repr(attrib_name))
else:
- print " %s: %s" % (attrib_name, attrib)
+ print " %s: %s" % (attrib_name, attrib)
def dump_simple(self):
return "%s"%self