(self, query, queryRes)
Adds details of an executed query to the xml.
        The query details are the query itself and its results.
Adds details of an executed query to the xml.
        The query details are the query itself and its results.
Adds details of an executed query to the xml . The query details are the query itself and its results .
def query(self, query, queryRes):
        '''
        Adds details of an executed query to the xml.
        The query details are the query itself and its results.
        '''
        queryElem = self.__doc.createElement(QUERY_ELEM_NAME)
        queryElem.setAttributeNode(self._createAttribute(VALUE_ATTR, query))
        queryElem.appendChild(self._createTextNode(queryRes))
        queriesElem = self._getRootChild(QUERIES_ELEM_NAME)
        if (not(queriesElem)):
            queriesElem = self.__doc.createElement(QUERIES_ELEM_NAME)
            self._addToRoot(queriesElem)
        queriesElem.appendChild(queryElem)
def query ( self , query , queryRes ) : queryElem = self . __doc . createElement ( QUERY_ELEM_NAME ) queryElem . setAttributeNode ( self . _createAttribute ( VALUE_ATTR , query ) ) queryElem . appendChild ( self . _createTextNode ( queryRes ) ) queriesElem = self . _getRootChild ( QUERIES_ELEM_NAME ) if ( not ( queriesElem ) ) : queriesElem = self . __doc . createElement ( QUERIES_ELEM_NAME ) self . _addToRoot ( queriesElem ) queriesElem . appendChild ( queryElem )