|
 |
asp_xml thread: CreateObject("MSXML2.DOMDocument")
Message #1 by david@r... on Thu, 31 May 2001 10:39:50
|
|
Can someone pls advice me what is the different between these
1. CreateObject("MSXML2.DOMDocument")
2. new ActiveXObject("MSXML.DOMDocument")
3. Server.CreateOject("Microsoft.XMLDOM")
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 31 May 2001 10:42:06 +0100
|
|
1. CreateObject("MSXML2.DOMDocument")
this is VB code to create a DOMDocument object using the MSXML2
library
2. new ActiveXObject("MSXML.DOMDocument")
this is javascript to create a DOMDocument object using the MSXML
library
3. Server.CreateOject("Microsoft.XMLDOM")
this is ASP vbscript to create a version independent DOMDocument
object
-----Original Message-----
From: david@r... [mailto:david@r...]
Sent: 31 May 2001 11:40
To: ASP XML
Subject: [asp_xml] CreateObject("MSXML2.DOMDocument")
Can someone pls advice me what is the different between these
1. CreateObject("MSXML2.DOMDocument")
2. new ActiveXObject("MSXML.DOMDocument")
3. Server.CreateOject("Microsoft.XMLDOM")
Message #3 by "sabba" <sabbadin@i...> on Thu, 31 May 2001 13:51:35 +0200
|
|
createobject is ok for asp (vbscript) pages as well
Enrico Sabbadin: esabbadin@v...
http://www.sabbasoft.com
MTS/COM+ / VB-COM FAQ: http://www.sabbasoft.com/mts_faq.htm
----- Original Message -----
From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
To: "ASP XML" <asp_xml@p...>
Sent: Thursday, May 31, 2001 11:42 AM
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
1. CreateObject("MSXML2.DOMDocument")
this is VB code to create a DOMDocument object using the MSXML2
library
2. new ActiveXObject("MSXML.DOMDocument")
this is javascript to create a DOMDocument object using the MSXML
library
3. Server.CreateOject("Microsoft.XMLDOM")
this is ASP vbscript to create a version independent DOMDocument
object
-----Original Message-----
From: david@r... [mailto:david@r...]
Sent: 31 May 2001 11:40
To: ASP XML
Subject: [asp_xml] CreateObject("MSXML2.DOMDocument")
Can someone pls advice me what is the different between these
1. CreateObject("MSXML2.DOMDocument")
2. new ActiveXObject("MSXML.DOMDocument")
3. Server.CreateOject("Microsoft.XMLDOM")
Message #4 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 31 May 2001 14:07:44 +0100
|
|
Only for built in objects, such as filesystemobject, dictionary etc
Any object which comes from an external library needs
Server.CreateObject
-----Original Message-----
From: sabba [mailto:sabbadin@i...]
Sent: 31 May 2001 12:52
To: ASP XML
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
createobject is ok for asp (vbscript) pages as well
Enrico Sabbadin: esabbadin@v...
http://www.sabbasoft.com
MTS/COM+ / VB-COM FAQ: http://www.sabbasoft.com/mts_faq.htm
----- Original Message -----
From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
To: "ASP XML" <asp_xml@p...>
Sent: Thursday, May 31, 2001 11:42 AM
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
1. CreateObject("MSXML2.DOMDocument")
this is VB code to create a DOMDocument object using the MSXML2
library
2. new ActiveXObject("MSXML.DOMDocument")
this is javascript to create a DOMDocument object using the MSXML
library
3. Server.CreateOject("Microsoft.XMLDOM")
this is ASP vbscript to create a version independent DOMDocument
object
-----Original Message-----
From: david@r... [mailto:david@r...]
Sent: 31 May 2001 11:40
To: ASP XML
Subject: [asp_xml] CreateObject("MSXML2.DOMDocument")
Can someone pls advice me what is the different between these
1. CreateObject("MSXML2.DOMDocument")
2. new ActiveXObject("MSXML.DOMDocument")
3. Server.CreateOject("Microsoft.XMLDOM")
Message #5 by "Michiel van Otegem \(lists ONLY\)" <michiel_lists@a...> on Thu, 31 May 2001 15:25:11 +0200
|
|
Funny, there was just a discussion on a Dutch ASP list about this. Since
your claims are not entirely correct let me explain.
CreateObject is a VBScript mechanism (not ASP). In NT4 it will create an
object without the context of the caller. This has perfomance benefits, but
this context contains things like the ASP intrinisc objects (Application,
Session and so on). So if you want to use these objects in the called
component, CreateObject will fail.
Server.CreateObject is an ASP construct and as such available in any
language. It does create objects within the caller's (ASP) context.
In Win2000 CreateObject has the same functionality as Server.CreateObject,
there is effectively no difference.
---
Michiel van Otegem
ASP/ASP.NET/XML Teacher
off-list email: michiel@a...
ASPNL.com / IT Composer
www: http://www.aspnl.com
---
----- Original Message -----
From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
To: "ASP XML" <asp_xml@p...>
Sent: Thursday, May 31, 2001 3:07 PM
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
Only for built in objects, such as filesystemobject, dictionary etc
Any object which comes from an external library needs Server.CreateObject
-----Original Message-----
From: sabba [mailto:sabbadin@i...]
Sent: 31 May 2001 12:52
To: ASP XML
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
createobject is ok for asp (vbscript) pages as well
Enrico Sabbadin: esabbadin@v...
http://www.sabbasoft.com
MTS/COM+ / VB-COM FAQ: http://www.sabbasoft.com/mts_faq.htm
----- Original Message -----
From: "Alex Shiell, ITS, EC, SE" <alex.shiell@s...>
To: "ASP XML" <asp_xml@p...>
Sent: Thursday, May 31, 2001 11:42 AM
Subject: [asp_xml] RE: CreateObject("MSXML2.DOMDocument")
1. CreateObject("MSXML2.DOMDocument")
this is VB code to create a DOMDocument object using the MSXML2
library
2. new ActiveXObject("MSXML.DOMDocument")
this is javascript to create a DOMDocument object using the MSXML
library
3. Server.CreateOject("Microsoft.XMLDOM")
this is ASP vbscript to create a version independent DOMDocument
object
-----Original Message-----
From: david@r... [mailto:david@r...]
Sent: 31 May 2001 11:40
To: ASP XML
Subject: [asp_xml] CreateObject("MSXML2.DOMDocument")
Can someone pls advice me what is the different between these
1. CreateObject("MSXML2.DOMDocument")
2. new ActiveXObject("MSXML.DOMDocument")
3. Server.CreateOject("Microsoft.XMLDOM")
|
|
 |