import {XMLParser} from '@oresoftware/xml.js'
fs.createReadStream(file).pipe(new XMLParser()).once('result', function(result){
// your XML is now a JS object
});
fs.createReadStream(file).pipe(new XMLParser({key: 'foobar'})).on('jschunk', function(c){
// represents a Node instance in your data
});
The library will create a read stream for you.
new XMLParser({file}).once('result', function(c){
// c represents a Node instance in your data
});