Hey Experts,
I have the following code running perfectly fine on a Windows 2000 Server (yes, I wrote the line numbers here):
13 dim objXML, objLst, noOfCharacters, attr, attr3, attr4, n_attr, k, attr2, rank
14 Set objXML = Server.CreateObject("Microsoft.XMLDOM")
15 objXML.async = False
16 objXML.Load ("http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")
17
18 Set objLst = objXML.getElementsByTagName("character")
19 noOfCharacters = objLst.length
20 attr = objXML.documentElement.firstChild.firstChild.firstChild.firstChild.nodeName
21 Set attr3 = objXML.documentElement.childNodes(0).childNodes(0).childNodes(0).childNodes(0)
22 Set attr4 = attr3.attributes
23 n_attr = attr4.length
But, when I moved my website over to a Window Server 2003 SE, I get this error:
Microsoft VBScript runtime error '800a01a8'
Object required: '[object]'
/guildroster.asp, line 22
Now, if you can wave the idea that there's a problem in the code for just a second, I did try the following:
1 dim objXML, objLst, noOfCharacters, attr, attr3, attr4, n_attr, k, attr2, rank
2 Set objXML = Server.CreateObject("Microsoft.XMLDOM")
3 objXML.async = False
4 objXML.Load ("http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")
5 Response.Write objXML.nodeName&"<br>"
6 Response.Write objXML.firstChild.nodeName
And got back this error:
#document
Microsoft VBScript runtime error '800a01a8'
Object required: '[object]'
/test.asp, line 7
The #document was expected but the error on line 7 wasn't. You can go to http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny, right click and view source and see that it has children in the XML document. When I copied this file to my Win2k server I got the following response:
#document
xml
This is what I expected.
When I inspect the MSXML.DLL files on both server they are of different versions, so I'm thinking that may be the problem, but I can't find any information to back up my theory or to fix it.
Win2K MSXML.DLL Verion: 8.0.6730.0
Win2k3 MSXML.DLL Version: 8.0.7002.0
I don't know what to do, I need the site up on the new server but I don't know what I should change to make it work.
Here's the page on the Win2k server: http://www.jeremysouthard.org/god/guildroster.asp
Here's the page on the Win2k3 server: http://www.guardians-of-destiny.net/guildroster.asp
My test file on Win2K server: http://www.jeremysouthard.org/god/test.asp
My test file on Win2k3 server: http://guardians-of-destiny.net/test.asp
Thanks in advance.
MastaLlama
by: acperkinsPosted on 2007-09-08 at 17:22:03ID: 19854906
>>When I inspect the MSXML.DLL files on both server they are of different versions<<
soft.XMLDO M")
.DOMDocume nt')
You hit the nail on the head.
Instead of:
Set objXML = Server.CreateObject("Micro
Use:
Set objXML = Server.CreatObject('MSXML2