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

def xml(self):

    root = Element('Security', ns=wssens)
    root.set('mustUnderstand', str(self.mustUnderstand).lower())
    for t in self.tokens:
        root.append(t.xml())
    return root
