nl_tokens: This method parses the xml file provided .
pl_tokens: function ( file ) { var contents = fs . readFileSync ( file , 'utf-8' ) ; if ( contents ) { // Windows is the BOM. Skip the Byte Order Mark. contents = contents . substring ( contents . indexOf ( '<' ) ) ; } var doc = new et . ElementTree ( et . XML ( contents ) ) ; // eslint-disable-line babel/new-cap var <mask> = doc . getroot ( ) ; if ( root . tag !== 'widget' ) { // Throw an error if widget is not the root tag throw new Error ( file + ' has incorrect root node name (expected "widget", was "' + root . tag + '")' ) ; } return doc ; }