用VC+DOM怎样创建和Excel关联的xml文件(代码实现)?
枫★曦 2008-12-16 04:40:27 各位大虾:
小弟有一个问题困扰了好多天了。是这样的,
我从两个文件中读取相应的数据进行比较,比较的结果是要保存为
一个能用Excel打开的xml文件。请问怎用代码来实现以下结构:
<?xml version="1.0" encoding="UTF-8"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel">
<Styles>
属性设置
</Styles>
<Worksheet>
中间为excel表中出现的数据。
</Worksheet>
我用的是msxml。
谢谢了。