'Return the namespace of the <query> element.'

def get_query(self):

    for child in self.xml:
        if child.tag.endswith('query'):
            ns = child.tag.split('}')[0]
            if ('{' in ns):
                ns = ns[1:]
            return ns
    return ''
