def __from_xmlnode(self, xmlnode):
actor=None<EOL>reason=None<EOL>n=xmlnode.children<EOL>while n:<EOL><INDENT>ns=n.ns()<EOL>if ns and ns.getContent()!=MUC_USER_NS:<EOL><INDENT>continue<EOL><DEDENT>if n.name=="<STR_LIT>":<EOL><INDENT>actor=n.getContent()<EOL><DEDENT>if n.name=="<STR_LIT>":<EOL><INDENT>reason=n.getContent()<EOL><DEDENT>n=n.next<EOL><DEDENT>self.__init(<EOL>from_utf8(xmlnode.prop("<STR_LIT>")),<EOL>from_utf8(xmlnode.prop("<STR_LIT>")),<EOL>from_utf8(xmlnode.prop("<STR_LIT>")),<EOL>from_utf8(xmlnode.prop("<STR_LIT>")),<EOL>from_utf8(actor),<EOL>from_utf8(reason),<EOL>)<EOL>
Initialize a `MucItem` object from an XML node.

        :Parameters:
            - `xmlnode`: the XML node.
        :Types:
            - `xmlnode`: `libxml2.xmlNode`