def set_password(self, password):
for child in xml_element_iter(self.xmlnode.children):<EOL><INDENT>if get_node_ns_uri(child) == MUC_NS and child.name == "<STR_LIT:password>":<EOL><INDENT>child.unlinkNode()<EOL>child.freeNode()<EOL>break<EOL><DEDENT><DEDENT>if password is not None:<EOL><INDENT>self.xmlnode.newTextChild(self.xmlnode.ns(), "<STR_LIT:password>", to_utf8(password))<EOL><DEDENT>
Set password for the MUC request.

        :Parameters:
            - `password`: password
        :Types:
            - `password`: `unicode`