admin管理员组

文章数量:1124165

Could anybody help me to solve a mistry? Either I have a discovery or my problem is an isolated problem in my system. If that is a discovery, then it might be a good news for people who use iframe but right now it is a bad news for me.

I am trying to make some changes to a page of legacy application that uses MSXML2.DOMDocument60 selectSingleNode() to retrieve values from xml. The vb6 code that uses the selectSingleNode() is encapsulated in a COM+ component which is instantiated by the page. I am using classic ASP on Windows 11.

Currently the page is loaded in an iframe and I do not have any issues with retrieving xml values by selectSingleNode(). However, when I fetch the page in a div the selectSingleNode returns Nothing. Why is that so? I expect not to have a mistake with using the DOM functions because the same page works fine in the iframe.

Could anybody help to solve this?

I did not have much ideas how to attempt to solve this problem but i did the following: 1- I verified if there is anything disturbing line on the top page that contains the fetched div but I there are only some headers and some divs that form the structure of the website. 2- I fetched another page that also uses the selectSingleNode() in the same div but the same problem happens and selectSingleNode() returns Nothing. 3- I did exhausting searches about this issue but I found nothing relating to the subject of selectSingleNode and iframe and div.

本文标签: vb6DDOMDocument selectSingleNode returns null when pages fetchedStack Overflow