def complete_xml_element(self, xmlnode, _unused):
for _unused1, value in self.content.items():<EOL><INDENT>if value is None:<EOL><INDENT>continue<EOL><DEDENT>if type(value) is list:<EOL><INDENT>for v in value:<EOL><INDENT>v.as_xml(xmlnode)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>value.as_xml(xmlnode)<EOL><DEDENT><DEDENT>
Complete the XML node with `self` content.

        Should be overriden in classes derived from `StanzaPayloadObject`.

        :Parameters:
            - `xmlnode`: XML node with the element being built. It has already
              right name and namespace, but no attributes or content.
            - `_unused`: document to which the element belongs.
        :Types:
            - `xmlnode`: `libxml2.xmlNode`
            - `_unused`: `libxml2.xmlDoc`