src/ConfigParser/ConfigParser.js
function(name){
        var engines = this.doc.findall('./engine/[@name="' +name+'"]');
        for(var i=0; i < engines.length; i++){
            var children = this.doc.getroot().getchildren();
            var idx = children.indexOf(engines[i]);
            if(idx > -1){
                children.splice(idx,1);
            }
        }
    }
function(name){
        var engines = this.doc.findall('./engine/[@name="' +name+'"]');
        for(var i=0; i < engines.length; i++){
            var children = this.doc.getroot().getchildren();
            var idx = children.indexOf(engines[i]);
            if(idx > -1){
                children.splice(idx,1);
            }
        }
    }
function ( name ) { var engines = this . doc . findall ( './engine/[@name="' + name + '"]' ) ; for ( var i = 0 ; i < engines . length ; i ++ ) { var children = this . doc . getroot ( ) . getchildren ( ) ; var idx = children . indexOf ( engines [ i ] ) ; if ( idx > - 1 ) { children . splice ( idx , 1 ) ; } } }
Removes all the engines with given name
@param  {String} name the engine name.
Removes all the engines with given name