templates/hooks/after_prepare/update_platform_config.js
function (filename) {
            var contents = fs.readFileSync(filename, 'utf-8');
            if(contents) {
                //Windows is the BOM. Skip the Byte Order Mark.
                contents = contents.substring(contents.indexOf('<'));
            }
            return new et.ElementTree(et.XML(contents));
        }
function (filename) {
            var contents = fs.readFileSync(filename, 'utf-8');
            if(contents) {
                //Windows is the BOM. Skip the Byte Order Mark.
                contents = contents.substring(contents.indexOf('<'));
            }
            return new et.ElementTree(et.XML(contents));
        }
function ( filename ) { var contents = fs . readFileSync ( filename , 'utf-8' ) ; if ( contents ) { //Windows is the BOM. Skip the Byte Order Mark. contents = contents . substring ( contents . indexOf ( '<' ) ) ; } return new et . ElementTree ( et . XML ( contents ) ) ; }
Parses a given file into an elementtree object
Parses a given file into an elementtree object