コード例 #1
0
 def xml(self):
     """
     this returns the object src_element element as a string
     based on the class name (using tag here)
     we set xml_header to False because we only want the header
     on our top level tree
     """
     return util.element_to_xml(self.etree,xml_header=False)
コード例 #2
0
ファイル: core.py プロジェクト: robmoggach/python-openclip
 def xml(self):
     """convenience property that returns the XML string of
     the OpenClip instance's etree
     """
     return util.element_to_xml(self.etree)
コード例 #3
0
ファイル: core.py プロジェクト: robmoggach/python-openclip
 def __unicode__(self):
     """
     this returns the object etree element as a unicode string
     """
     return util.element_to_xml(self.etree)