Currently we are generating dat in .XLS file and I want to generate data on .xlsx format

Job ID: 33856537

Budget: ₹1,500 – ₹12,500 INR

the exporter in XLS was expotring to the console the data - which was XML - so it could be printed.

but in XLSX everything is binary - hence you need to dump it to a file, maybe in the %TEMP% folder.
then in the console just log the filename