Hey All,

I am trying to convert an Excel 2007 (xlsx) file to XML
I am trying to use the XSSFExportToXML However I am running into issues.
Please any help is greatly appreciated.


File inputfile = new File("test.xlsx");
FileInputStream inp = new FileInputStream(inputfile);

XSSFWorkbook wb1=new XSSFWorkbook(inp);

Collection temp = new ArrayList();
temp = wb1.getCustomXMLMappings();

System.out.println(temp.size());

// I GET THE SIZE OF THIS AS 0, I have tried using MapInfo trying to get
wb1.getMapInfo() but i get null,


// rest is just trial
XSSFMap = temp[0];

XSSFExportToXml ex = new XSSFExportToXml((xssfmap);
                        
OutputStream writer = new FileOutputStream("outxml.txt");
ex.exportToXML(writer ,false);


Thanks in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@poi.apache.org
For additional commands, e-mail: user-h...@poi.apache.org

Reply via email to