index.js
function (body, next) {
                fs.writeFile(out + "/" + path.basename(url), body, function (err) {
                    if (err) {
                        return next(err);
                    }
                    next(null, body);
                });
            }
function (body, next) {
                fs.writeFile(out + "/" + path.basename(url), body, function (err) {
                    if (err) {
                        return next(err);
                    }
                    next(null, body);
                });
            }
function ( body , next ) { fs . writeFile ( out + "/" + path . basename ( url ) , body , function ( err ) { if ( err ) { return next ( err ) ; } next ( null , body ) ; } ) ; }
2 - Save the XML File Locally
2 - Save the XML File Locally