def parse_request_type(self, command):
        dom = xml.parseString(command)
        protocol_node = dom.firstChild

        # Find the next non-text node.
        for n in protocol_node.childNodes:
            if n.nodeName != "#text":
                return n.nodeName
Will obtain the request type. That is, the name of the node beneath the root <protocol> node.
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/experiments/visir_html5.py/VisirExperiment.parse_request_type