问题标签 [msxml6]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - Windows Server 2008 中 Msxml2.ServerXmlHttp 的“错误:自动化服务器无法创建对象”
我收到此错误:“错误:自动化服务器无法创建对象”
当我尝试在 Windows Server 2008 中使用 java 脚本创建 Msxml2.ServerXmlHttp 对象时。
如果我将此 IE 设置更改为“初始化和脚本 ActiveX 控件未标记为安全”,此错误就会消失。
但为什么需要更改此 IE 设置?在 Windows 7 中无需任何设置更改即可使用相同的方法。
谢谢文卡特什
xml - 从 XML 数据中读取 URL
使用 Delphi 2010,我想使用 TXMLDocument 从以下 XML 示例数据(我省略了不需要的部分)中读取 Location、Smartcard_Location 和 Integrated_Location 的 URL:
数据已经从网络服务器加载到 TXMLDcoument 中。解析这些数据并将 URL 转换为字符串值的最简单方法是什么?
c++ - 在 Visual C++ 上使用 msxml6.h 时出错
在 Visual Studio 2010 中,如果我启动一个控制台项目并 #include 这工作正常,但如果我启动一个 win32 项目并 #include ,它会在编译期间返回许多错误。
为什么?
xml - 来自网页 xmlLib Error / msxml3 & msxml6 的消息
在工作中,一些用户在尝试运行某个基于 Web 的数据库时遇到 xmlLib 错误。我们曾经在运行 Windows XP 机器时得到它,但能够通过将更高版本的 msxml3.dll 替换为包含我们需要的某些安全功能的新版本来修复。现在所有的 Windows 7 机器都出现了问题,但旧的修复显然不起作用。起初我认为这可能是因为在 Windows 7 中不再调用 dllcache 文件夹,这是正确的,但更改路径以反映更改并不能解决问题。我倾向于不在 Windows 7 中使用 msxml3.dll,并且它必须是更新版本的 msxml6.dll?我想这样想的另一个原因是因为不久前我最初准备处理这个问题时,因为更重要的事情出现而退出,我正在阅读对 msxml3.dll 的代码引用,但没有关于此 dll 的较新版本。我也一直在通过谷歌在网上搜索,但还没有想出足够接近的东西来尝试。再说一次,虽然我对 XML 不太擅长,所以我可能在胡说八道。请参阅下面的错误消息。
来自网页的消息
xmlLib 错误:updateGram 响应不是有效的 xml。检查您的文档和路径。-1072896682 - 在文档的顶层无效。
对我来说,即使根据我有限的 XML 知识,该错误似乎也显示了到数据库的无效连接路径。
有人认为对代码进行验证会有所帮助吗?我没有编写代码也没有帮助它,所以我不能说它是否完成。
javascript - 如何保存带有缩进的 MSXML2.DomDocument?(我认为它使用 MXXMLWriter)
我有一个 MSXML2.DomDocument 实例。
我挥手保存它,缩进。
此代码有效,但不缩进:
我想我可以使用 MXXMLWriter 对象来注入缩进。
如何?
xml - 如何从经典asp中的xml字符串中的元素中提取文本
我有以下xml:
我想提取 ExpirationTimeStamp 元素的内容。
这是我的代码的相关部分(是的,我们使用的是 jscript 而不是 vbscript):
我也尝试过 selectSingleNode 而不是 getElementsByTagName
我已经尝试将 GetPurchaseContractResponse/GetPurchaseContractResult/PurchaseContract/ExpirationTimeStamp 作为 xpath 字符串,其中没有、一个和两个前导斜杠
Response.Write(xmlDoc.xml) 输出整个文档,因此加载正常。
expNode 变量没有得到任何东西。
我对 xpath 的了解几乎为零,所以我确信那里的一些专家可以指出我所犯的简单错误。
c++ - MSXML XSLT 解析器版本
我有一个 C++ 应用程序,它使用 msxml6.dll 来读取 XML 文件并应用 XSLT。通过在我的一个 XSLT 文件中包含以下内容,我确定 MSXML v3.0 用于 XSLT:
我不明白为什么使用 MSXML v3.0 而不是 MSXML v6.0。应用程序需要更改哪些内容才能使用 MSXML v6.0?
c++ - C++ xml(我应该使用 msxml6 吗?我安装了 msxml6 但看不到它在哪里)
我有几个关于 c++ xml 的问题。我正在使用 Visual Studio 2010。
我应该使用 msxml6.dll 进行 c++ xml 解析吗?
我已经安装了 msxml6.dll,但是我找不到它的安装位置。应该在 C:\Program Files (x86)\ 或 C:\Program Files\ 下看到一个名为 MSXML 6.0 的新目录?但我什么也没看到。但是,我在 C:\Windows\System32 中看到了 msxml6.dll。
如何在我的 c++ 项目中添加对 msxml6.dll 的引用?
谢谢,ZAJ,
xml-namespaces - How to query default namespace with MSXML
I have some XML:
Note: This isn't the actual XML i'm using, it's just prettier and shorter, and demonstrates the problem.
Using MSXML i can query for nodes:
And it works fine:
Condition="'$(key)'=='1111'"
But that's not really the XML i have
In reality the XML i have contains a namespace declaration:
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
making the actual XML document:
Now my query:
returns no matching nodes.
How do i query the default namespace using MSXML?
Note:
i already know how to query the non-default namespace in xml; you use:
/li>i already know how to query the default namespace in .NET. You use the namespace manager, give the default namespace a name, then query using that name, then you can query the non-default namespace since it's no longer default
i can just delete the offensive
xmlns
text from the XML string i receive, but i'd rather "do it the right way"
How do i query the "default", or "unnamed" namespace using MSXML?
Note: In reality the XML i am using the SQL Server's XML ShowPlan output:
Again you can see the offending namespace declaration. Deleting it works, but that's tedious.
What else have you tried?
i also tried setting the SelectionNamespace:
as Microsoft hints at in a KB article.
How do i get the default namespace?
In reality i don't care about namespaces. My query makes sense, and i want it to work. So, Another approach to the question might be:
How can i query the default namespace whether, or not, and no matter what, that namespace name is (or isn't)?
Note: msxml is native code, and using it from a native Win32 compiler (i.e. no .NET framework or CLR)
c - MSXML 的内存处理问题
我有一个使用 dll 中的一些遗留代码测试制造产品的应用程序。可以为不同的产品设置应用程序。设置是通过 xml 文件完成的,并且可以(并且将)在运行时更改,即在批次结束时。xml 的处理由上述遗留 dll 完成。
运行较长时间(几天到几周)后,我注意到内存占用量增加了。对此进行调试,我可以追踪到 dll 的(可能的)泄漏。得到源之后,我可以进一步调查,直到我发现这样的东西:
在我看来,每次都会调用它,开始一个新的批次。正是这种doc
结构,似乎存在于记忆中。我找不到任何释放它的地方。
毕竟,该 dll 有很多轻微的泄漏,全部来自未释放的对象(CVI 函数)。我修复了这些,但我不知道如何释放这个 MS-Objects。我遇到了这个:了解 MSXML 垃圾收集机制,但是在我拥有 ANSI-C 代码之后,我不确定如何处理 GC 以及它是否有效。
有没有办法手动释放 MSXML 对象?