def _split_qname(self, name, is_element):
if name.startswith("<STR_LIT:{>"):<EOL><INDENT>namespace, name = name[<NUM_LIT:1>:].split("<STR_LIT:}>", <NUM_LIT:1>)<EOL>if namespace in STANZA_NAMESPACES:<EOL><INDENT>namespace = self.stanza_namespace<EOL><DEDENT><DEDENT>elif is_element:<EOL><INDENT>raise ValueError("<STR_LIT>".format(name))<EOL><DEDENT>else:<EOL><INDENT>namespace = None<EOL><DEDENT>return namespace, name<EOL>
Split an element of attribute qname into namespace and local
        name.

        :Parameters:
            - `name`: element or attribute QName
            - `is_element`: `True` for an element, `False` for an attribute
        :Types:
            - `name`: `unicode`
            - `is_element`: `bool`

        :Return: namespace URI, local name
        :returntype: `unicode`, `unicode`