无法使用Excel2010打开XML文件,但能够使用Excel2007 [英] cannot open XML file with Excel2010 but was able with Excel2007

查看:383
本文介绍了无法使用Excel2010打开XML文件,但能够使用Excel2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Excel 2007开发了几个宏来显示XML文件的内容。使用Excel 2007,我有一条信息性消息,说明指定的XML源不引用架构,但Excel将根据现有的
数据创建一个。这很棒,然后我可以导入所有的XML数据。我正在使用此文件作为将一些信息从XML传输到电子表格的表格。

i have developed several macro with Excel 2007 which are displaying content of XML files. With Excel 2007, i have an informative message explaining that the specified XML source does not refer to a schema but that Excel will create one based on existing data. That is great and I am then able to import all my XML data. I am using this file as a table transfering some information from XML to a spreadsheet.

当我尝试使用Excel 2010打开任何XML文件时,我收到一条错误消息"无法加载"指定的XML或模式源"。在"细节"中给出的原因是DTD是禁止的。为什么Excel 2010无法构建架构,因为Excel 2007能够
。我是否需要安装一个特殊的加载项?

When i try to open any XML file with Excel 2010, i have an error message saying "cannot load the specified XML or schema source". The reason given in "details" is DTD is prohibited. Why Excel 2010 is not able to build the schema as Excel 2007 was able to do. Do i need to install a special add-in to do so?

我尝试使用来自互联网的资源从XML创建XSD文件,但没有成功。我对VBA for microsoft应用程序有很好的了解,但除了基础知识之外没有XML知识。 XML文件由另一个应用程序创建,我对内容没有控制
。我唯一想做的就是从这些文件中读取信息,并将其中一部分复制到工作簿2010中,因为我可以使用Excel 2007。

I tried to create a XSD file from the XML using resource from internet but without success. I have good knowledge with VBA for microsoft application, but none with XML except basics. The XML files are created by another application and i have no control on the contents. The only thing i wish to do is read information from these files and copy some of it to a workbook 2010 as i was able to do with Excel 2007.

感谢您的帮助,

Franck

 

 

推荐答案

你对这个弗兰克有运气吗? 到目前为止我没有任何解决方案也遇到同样的问题。

Did you have any luck with this Franck?  I'm having the same issue without any resolution so far.

Shane。


这篇关于无法使用Excel2010打开XML文件,但能够使用Excel2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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