简体   繁体   English

如何从xls文件生成xml或json映射,然后从该映射生成html表(结构)?

[英]How to generate a xml or json mapping from xls file and then generate html table(structure) from that mapping?

I need to read a xls file and generate a mapping from it. 我需要读取一个xls文件并从中生成一个映射。 My xls file is structured and formatted (for eg: like a report). 我的xls文件是经过结构化和格式化的(例如:像报告一样)。 Mapping can be in any form say JSON or xml . 映射可以采用任何形式,例如JSONxml From Mapping I mean the information of all cells (what type of information they are storing). 从映射中,我的意思是所有单元的信息(它们存储的信息的类型)。 Once the mapping is generated then I have to create a html structure say table from the generated mapping. 生成映射后,我必须根据生成的映射创建一个html结构,例如表。

Please suggest something. 请提出一些建议。 I can use any Excel Java API. 我可以使用任何Excel Java API。

So you can use: 因此,您可以使用:

They are both mainstream and easy to use. 它们既是主流,又易于使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM