I generally use CFSCRIPT to manipulate the classes. I just tried this
and it seemed to work fine:
<CFOBJECT CLASS="Msxml2.DOMDocument.4.0" NAME="objReturn"
ACTION="Create">
<CFSCRIPT>
objReturn.validateOnParse = true;
</CFSCRIPT>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of John A Smith
Sent: Wednesday, March 13, 2002 8:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [cf-xml] CFOBJECT throws error with msxmls4.0
OK
In CF_XMLDatasource.cfm we have:
<!--- Create the XML Parser --->
<CFOBJECT Action="create" Class="MSXML2.FreeTheadedDOMDocument"
Name="xom">
<CFSET xom.validateonparse = true>
This can be changed to:
<!--- Create the XML Parser --->
<CFOBJECT Action="create" Class="MSXML2.DOMDocument" Name="xom">
<CFSET xom.validateonparse = true>
or:
<!--- Create the XML Parser --->
<CFOBJECT Action="create" Class="MSXML2.DOMDocument.3.0" Name="xom">
<CFSET xom.validateonparse = true>
assuming that you have msxmls3 installed.
However if you install msxml4 and change to:
<!--- Create the XML Parser --->
<CFOBJECT Action="create" Class="MSXML2.DOMDocument.4.0" Name="xom">
<CFSET xom.validateonparse = true>
which is the valid ProgID then the error:
Error Diagnostic Information
unknown exception condition
unknown error while executing a tag.
Date/Time: 03/13/02 16:08:07
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Remote Address: 129.215.70.211 HTTP Referrer:
http://kpax.ucs.ed.ac.uk/xmlsamples/menu.htm
is thrown.
However, using ASP I can instantiate a ServerObject using the same
ProgID:
<%
Dim xmldoc
Set xmldoc = Server.CreateObject("MSXML2.DOMDocument.4.0")
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dylan Bromby
> Sent: 13 March 2002 15:19
> To: [EMAIL PROTECTED]
> Subject: RE: [cf-xml] CFOBJECT throws error with msxmls4.0
>
>
> Post your code...
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of John A Smith
> Sent: Wednesday, March 13, 2002 6:44 AM
> To: [EMAIL PROTECTED]
> Subject: [cf-xml] CFOBJECT throws error with msxmls4.0
>
>
> Hi
>
> Can anyone throw any light on why CFOBJECT throws an unknown exception
> when the ProgID for the COM object in the CLASS attribute is changed
> from "MSXML2.DOMDocument.3.0" to "MSXML2.DOMDocument..0" when we have
> msxmls 4.0 installed?
>
> Thanks
>
> John
>
>
> [EMAIL PROTECTED] webhelp.ucs.ed.ac.uk
> Information Tools +44 131 650 6915 Phone
> Computing Services +44 131 650 6547 Fax
> The University of Edinburgh, Main Library
> George Sq., Edinburgh EH8 9LJ
>
>
> -----------------------+
> cf-xml mailing list
> list: [EMAIL PROTECTED]
> admin: [EMAIL PROTECTED]
> home: http://torchbox.com/xml
>
>
>
>
> -----------------------+
> cf-xml mailing list
> list: [EMAIL PROTECTED]
> admin: [EMAIL PROTECTED]
> home: http://torchbox.com/xml
>
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml