MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / xml

Method xml

suds/wsse.py:71–81  ·  view source on GitHub ↗

Get xml representation of the object. @return: The root node. @rtype: L{Element}

(self)

Source from the content-addressed store, hash-verified

69 self.keys = []
70
71 def xml(self):
72 """
73 Get xml representation of the object.
74 @return: The root node.
75 @rtype: L{Element}
76 """
77 root = Element('Security', ns=wssens)
78 root.set('mustUnderstand', str(self.mustUnderstand).lower())
79 for t in self.tokens:
80 root.append(t.xml())
81 return root
82
83
84class Token(Object):

Callers 1

headercontentMethod · 0.45

Calls 3

setMethod · 0.95
appendMethod · 0.95
ElementClass · 0.90

Tested by

no test coverage detected