开发者

How to get values from Open office spreadsheet?

开发者 https://www.devze.com 2023-02-22 01:21 出处:网络
How to get the values from spread sheet? I would like to read from using java language?开发者_Go百科OpenOffice documents are Zipped XML files.Copy one, rename it to .zip, open it and look into the XML

How to get the values from spread sheet? I would like to read from using java language?开发者_Go百科


OpenOffice documents are Zipped XML files. Copy one, rename it to .zip, open it and look into the XML & you'll see the data in the cells.

To access one using Java code:

  • Use ZipInputStream to get access to the XML.
  • Then use any of the slew of XML APIs in J2SE (DOM, Sax etc.) to parse it.


Use OpenOffice.org UNO API.

0

精彩评论

暂无评论...
验证码 换一张
取 消