DOMDocument60.load问题 [英] DOMDocument60.load problem
问题描述
不确定这是否是正确的论坛,但由于我是在VB.Net 2010中编写的...
在一家大型金融机构工作.我们有一个抵押贷款摊销应用程序,它可以交互工作或通过向其传递参数来工作.传递参数时,您将获得格式为xml的响应. 我们将xml解析为另一个修改贷款的应用程序的响应.
执行此操作时: Process.Start("iexplore.exe",sCalculatorURL& sParams)我得到了一个IE页面,上面写着 >
<?xml version ="1.0" encoding ="UTF-8"独立=否" ?>
< mortgagecomputation>
< interest> 2.750</interestrate>
< loanamount> $ 250,000.00</loanamount>
< pnipayment> $ 1,355.42</pnipayment>
<总付款> 240</totalpayments>
< totalinterest> $ 75,299.78</totalinterest>
</mortgagecomputation>
与IE 11和IE 8相同.
但是,当我这样做时:
Dim xmldoc 为 新 MSXML2 . DOMDocument60
如果xmldoc.load(sCalculatorURL& sParams)然后</span>
在IE 11中,我总是会得到错误,但是在IE8中,我总是会得到true.在IE 11中,.readystate保持为3,并且子节点不是对象".在IE 8中,一切正常,我读取了节点并可以插入
结果在我的应用程序中.
我有2台计算机并排安装在Win 7/IE 11计算机和Win XP/IE 8计算机旁边.这是相同的代码/项目,我在机器之间交替进行.
贷款修改"应用程序正在与IE 8和Win 7一起使用,然后用户升级到了停止工作的IE 11.没有其他更改.
计算器在Lotus Notes数据库中(不是我的电话,这是公司范围内的事情). URL和参数有效且格式正确,并且在任何情况下都相同.相同的代码,不同的IE.
这是一个生产问题,我需要迅速获得帮助.
谢谢!
Frank T.
Frank,
这是一个.asp项目吗?如果是这样,那么您就不在正确的论坛中,但是如果这是一个WinForms应用程序,那么为什么根本没有涉及到浏览器?
Not sure if this is the right forum but since I'm writing in VB.Net 2010 ...
Working for a major financial institution. We have a mortgage amortization application that works interactively or by passing parameters to it. When you pass parameters you get a response formatted as xml. We parse the xml for the response for another application for modifying loans.
When you I do this: Process.Start("iexplore.exe", sCalculatorURL & sParams) I get a IE page that says
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<mortgagecomputation>
<interestrate>2.750</interestrate>
<loanamount>$250,000.00</loanamount>
<pnipayment>$1,355.42</pnipayment>
<totalpayments>240</totalpayments>
<totalinterest>$75,299.78</totalinterest>
</mortgagecomputation>
This is the same for IE 11 and IE 8.
However when I do this:
Dim xmldoc As New MSXML2.DOMDocument60
If xmldoc.load(sCalculatorURL & sParams) Then
In IE 11 I always get a false, but in IE8 I always get true. In IE 11 the .readystate remains at 3 and the childnodes are "not an object". In IE 8 everything is fine, I read the nodes and can insert the
results in my application.
I have 2 machines sitting side by a Win 7/IE 11 machine and a Win XP/IE 8 machine. It is the same code/project and I am alternating between the machines.
The Loan Modification application was working with IE 8 and Win 7 and then the users were upgraded to IE 11 which is when it stopped working. No other changes were made.
The calculator is in a Lotus Notes database (not my call, it’s a companywide thing). The URL and the parameters are valid and correctly formatted and in any case are identical. Same code, different IE.
This is a production issue and I need help quickly.
Thanks!
Frank T.
Frank,
Is this for an .asp project? If so then you're not in the correct forum, but if this is a WinForms application, then why is there a browser involved at all?
这篇关于DOMDocument60.load问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!