如何编程获得客户机 XML 解析器的版本信息?(100分)

  • 主题发起人 主题发起人 jsxjd
  • 开始时间 开始时间
J

jsxjd

Unregistered / Unconfirmed
GUEST, unregistred user!
如何编程获得客户机 XML 解析器的版本信息?
 
<!--这个页放到主目录下用于更新 MSXML-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<title>MSXML 3.0 SP1do
wnload Sample</title>
</head>
<body>
<object id="MSXML3"
classid="clsid: f5078f32-c551-11d3-89b9-0000f81fe221"
codebase="msxml3/msxml3.cab#version=8,10,8308,0"
type="application/x-oleobject"
STYLE="display: none">
</object>
This pagedo
wnloads MSXML 3.0 SP1...
</body>
</html>
如果是 web ,只要在代码里加上你希望达到的版本,客户端会自动比较。
如果是其他应用,视具体的情况。
 
xml 3.0 有平等和替换安装两种方式.
如果是平等安装的话,用XSLT显示的XML将不正常.
我要知道客户上起作用的XML版本.
如果起作用的版本低于 3.0 提示用户,
用户不联网,不用浏览器.
 
多版本下,对当前默认版本在注册表中有注明 CurVer 键
[HKEY_CLASSES_ROOT/Msxml2.XSLTemplate]
@="XSL Template"
[HKEY_CLASSES_ROOT/Msxml2.XSLTemplate/CLSID]
@="{2933BF94-7B36-11d2-B20E-00C04F983E60}"
[HKEY_CLASSES_ROOT/Msxml2.XSLTemplate/CurVer] // <--- 查它试试
@="Msxml2.XSLTemplate.3.0"
我机器中最高版本是 4.0 ,但这个键值却还是 3.0
 
接受答案了.
 
后退
顶部