Пример #1
0
 def to_xml(cls, value, tns, parent_elt, name='retval'):
     e = etree.SubElement(parent_elt, '{%s}%s' % (tns,name))
     dict_to_etree(e, value)
Пример #2
0
 def to_xml(cls, value, tns, parent_elt, name="retval"):
     e = etree.SubElement(parent_elt, "{%s}%s" % (tns, name))
     dict_to_etree(e, value)
Пример #3
0
    def to_xml(cls, value, tns, name='retval'):
        e = etree.Element('{%s}%s' % (tns,name))
        dict_to_etree(e, value)

        return e