Msxml * .XMLHTTP与Microsoft.XMLHTTP [英] Msxml*.XMLHTTP vs. Microsoft.XMLHTTP

查看:57
本文介绍了Msxml * .XMLHTTP与Microsoft.XMLHTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< http://www.quirksmode.org/book/printable/xmlhttp.txtshows两个

替代Microsoft.XMLHTTP - Msxml2.XMLHTTP和Msxml3.XMLHTTP。

如果我的理解是正确的,不同的数字指的是Microsoft的XML解析器的

版本,而Microsoft.XMLHTTP指的是

最新安装的版本。


这让我想知道为什么网站像

< http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt到

首先使用Msxml2.XMLHTTP,然后使用Microsoft.XMLHTTP作为

后备。如果v2是XML解析器的最新版本,那么
Microsoft.XMLHTTP就像Msxml2.XMLHTTP那样引用它。如果v3

或v4是最新版本,Microsoft.XMLHTTP将引用那些

。那么为什么要给v2偏好呢?在使用v2之前使用v4

然后再使用v3不是更好吗?仅仅参考

Microsoft.XMLHTTP而不是Msxml * .XMLHTTP不是更好吗?

<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two
alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP.
If my understanding is correct, the different numbers refer to the
version of Microsoft''s XML parser and that Microsoft.XMLHTTP refers to
the latest installed version.

This makes me wonder why sites like
<http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to
use Msxml2.XMLHTTP, first, and then use Microsoft.XMLHTTP as a
fallback. If v2 was the latest version of the XML parser,
Microsoft.XMLHTTP would refer to it just as Msxml2.XMLHTTP does. If v3
or v4 were the latest versions, Microsoft.XMLHTTP would refer to either
of those. So why give v2 preference? Wouldn''t it be better to use v4
and then v3, before using v2? Wouldn''t it be better just to reference
Microsoft.XMLHTTP and not Msxml*.XMLHTTP?

推荐答案



yawnmoth写道:

yawnmoth wrote:

< http://www.quirksmode.org/book/printable/xmlhttp.txtshows two

替代Microsoft.XMLHTTP - Msxml2.XMLHTTP和Msxml3.XMLHTTP。

如果我的理解是正确的,不同的数字指的是

微软的XML解析器的版本和Microsoft.XMLHTTP指的是最新安装版本的



这让我想知道为什么像

< http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to

首先使用Msxml2.XMLHTTP,然后使用Microsoft.XMLHTTP作为

后备。如果v2是XML解析器的最新版本,那么
Microsoft.XMLHTTP就像Msxml2.XMLHTTP那样引用它。如果v3

或v4是最新版本,Microsoft.XMLHTTP将引用那些

。那么为什么要给v2偏好呢?在使用v2之前使用v4

然后再使用v3不是更好吗?引用

Microsoft.XMLHTTP而不是Msxml * .XMLHTTP不是更好吗?
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two
alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP.
If my understanding is correct, the different numbers refer to the
version of Microsoft''s XML parser and that Microsoft.XMLHTTP refers to
the latest installed version.

This makes me wonder why sites like
<http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to
use Msxml2.XMLHTTP, first, and then use Microsoft.XMLHTTP as a
fallback. If v2 was the latest version of the XML parser,
Microsoft.XMLHTTP would refer to it just as Msxml2.XMLHTTP does. If v3
or v4 were the latest versions, Microsoft.XMLHTTP would refer to either
of those. So why give v2 preference? Wouldn''t it be better to use v4
and then v3, before using v2? Wouldn''t it be better just to reference
Microsoft.XMLHTTP and not Msxml*.XMLHTTP?






我不知道这个问题的正确答案是什么,但是你应该有一个/>
目前看看MS XML Web Log对于推荐的ProgIDs。


< URL:http://blogs.msdn.com/xmlteam/ archive / 2006/10/23 / using-the-right-version-of-msxml-in-internet-explorer.aspx>

问候

Julian Turner




Julian Turner写道:

[snip]

Julian Turner wrote:
[snip]

我不知道对此的正确答案是什么,但是你应该看看MS XML Web Log目前推荐的ProgIDs。


< URL:http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet- explorer.aspx>
I don''t know what the correct answer to this is, but you should have a
look at tbe MS XML Web Log as to the recommended ProgIDs at the moment.

<URL:http://blogs.msdn.com/xmlteam/archive/2006/10/23/using-the-right-version-of-msxml-in-internet-explorer.aspx>



请参阅上面条目末尾的以下引用: -


" MSXML2 vs.微软命名空间 - 我也见过很多

实例化Microsoft.XMLHTTP的代码。 ActiveX对象而不是

MSXML2.XMLHTTP.3.0或MSXML2.XMLHTTP.6.0如果你使用的是6.0。

" Microsoft"命名空间实际上比较旧,只能在

MSXML3中实现,以获得遗留支持。不幸的是,我们在旧版本上使用了更好的

名称,但坚持使用msxml2。

实例化对象时的命名空间。


似乎建议使用Microsoft.XMLHTTP实际上是过时的。


问候


Julian


See the following quote at the end of the above entry:-

"MSXML2 vs. Microsoft namespace - I''ve also seen a lot of code that
instantiates the "Microsoft.XMLHTTP" ActiveX object rather than the
MSXML2.XMLHTTP.3.0 or MSXML2.XMLHTTP.6.0 if you''re using 6.0. The
"Microsoft" namespace is actually older and is only implemented in
MSXML3 for legacy support. It''s unfortunate we used the "better"
name on the older version, but stick to the "msxml2" namespace when
instantiating objects."

Seems to suggest that using Microsoft.XMLHTTP is actually out of date.

Regards

Julian




Julian Turner写道:

Julian Turner wrote:

似乎表明使用Microsoft.XMLHTTP实际上是过时的。
Seems to suggest that using Microsoft.XMLHTTP is actually out of date.



右:这是IXMLHTTPRequest的第一个实现,所以应该使用
(如果使用的话)作为最后一个选项。


对于现代实现,它是由

Msxml2.XMLHTTP或Msxml3.XMLHTTP等激活的Msxml库。


As检测当前版本的

库(2?,3?,...,6?)微软制作的Msxml2.XMLHTTP是非常有问题的。为给定客户端上的当前库提供

通用别名*这样

你可以使用新的ActiveXObject(''Msxml2.XMLHTTP'')而不是担心

目前的livrary版本是说Msxml4

Right: that is for the very first implementations of IXMLHTTPRequest so
should be used (if even used) as the last option.

For modern implementations it is Msxml library activated by
Msxml2.XMLHTTP or Msxml3.XMLHTTP etc.

As it can be very problematic to detect the current version of the
library (2?, 3?,..., 6?) Microsoft made "Msxml2.XMLHTTP" to be the
universal alias *for the current library on the given client* This way
you can use new ActiveXObject(''Msxml2.XMLHTTP'') and do not worry that
the current livrary version is say Msxml4


这篇关于Msxml * .XMLHTTP与Microsoft.XMLHTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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