如何将xls转换为xml [英] how to convert xls into xml

查看:107
本文介绍了如何将xls转换为xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要读取一个xls文件并使用vc ++将其数据写入xml文件.Plz建议一些代码。

例如,如果xls有firdt col name =nitin和第二个col age = 26,然后: -



xml如下:



Hi i need to read a xls file and write its data into xml file using vc++.Plz suggest some code.
for example if xls has firdt col name = "nitin" and second col age = 26,then:-

xml will be as follows:

<nitin>
 <age>26<age>
<\nitin>

推荐答案

XLS已经是XML了,看看: Microsoft Office XML格式 [ ^ ]



Microsoft Office XML格式是基于XML的文档在Office 2007之前的Microsoft Office版本中引入的格式(或XML模式).Microsoft Office XP引入了用于存储Excel电子表格的新XML格式,Office 2003为Word文档添加了基于XML的格式。[1]
XLS is already XML, take a look: Microsoft Office XML formats[^]

The Microsoft Office XML formats are XML-based document formats (or XML schemas) introduced in versions of Microsoft Office prior to Office 2007. Microsoft Office XP introduced a new XML format for storing Excel spreadsheets and Office 2003 added an XML-based format for Word documents.[1]

< br>

请参阅 https://www.google.co.uk / search?q = read + xls + c%2B%2B [ ^ ]和 https://www.google.co.uk/search?q=write+xml+c%2B%2B [ ^ ]。
See https://www.google.co.uk/search?q=read+xls+c%2B%2B[^] and https://www.google.co.uk/search?q=write+xml+c%2B%2B[^].


这篇关于如何将xls转换为xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆