def clear(self):
if not self.xmlnode.children:<EOL><INDENT>return<EOL><DEDENT>n=self.xmlnode.children<EOL>while n:<EOL><INDENT>ns=n.ns()<EOL>if ns and ns.getContent()!=MUC_USER_NS:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>n.unlinkNode()<EOL>n.freeNode()<EOL><DEDENT>n=n.next<EOL><DEDENT>
Clear the content of `self.xmlnode` removing all <item/>, <status/>, etc.