'Extract namespace from tag name.
Namespace is tag name text up to and including the last
occurrence of \':\''

def _parse_ns(self, tag):

    if (':' in tag.name):
        (ns, name) = tag.name.rsplit(':', 1)
        return (('%s:' % ns), name)
    else:
        return ('', tag.name)
