Hi,

have you configured any Custom XML Mapping in the test.xml file ?

Here's how to do it http://openxmldeveloper.org/articles/2268.aspx. (sorry MS Excel for Windows only).

Thanks,
Roberto




Il giorno 15/ott/09, alle ore 00:52, Dhaval Parekh ha scritto:

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: [email protected]
For additional commands, e-mail: [email protected]


--
Roberto Manicardi
= = = ========================================================================
http://www.jugroma.it
http://roma.javaday.it
JUG Roma Coordinator

Reply via email to