Alan,

You might want to try downloading Microsoft's OLE Viewer application.  This
will allow you to see the exact name of the class you are trying to call,
along with methods, interfaces, etc.  Sometimes things aren't exactly what
they seem :)

Matt

Matthew Drayer
Web Development Coordinator
HCPro, Inc.
Marblehead MA
[EMAIL PROTECTED] 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 9:59 AM
To: Matthew Westcott
Subject: Re[2]: [cf-xml] Little Lost Newbie


Thanks. So I should have:

<cfobject type="COM" action="Create" name="SchObj"
class="IXMLDOMSchemaCollection2.4.0">

Correct? I still get "Invalid class string".

-- 
Alan Little
Holotech Enterprises

On Monday, February 24, 2003, 9:14:17 AM, you wrote:


> On 24 Feb 2003, at 8:38, [EMAIL PROTECTED] wrote:
> [...]
>> - Set up  a schema doc object (IXMLDOMSchemaCollection2). I use the add
>>   method, with first argument (url) set to "", and second argument, a
>>   string representing my schema document.
>> - Setup a DOM object (IXMLDOMDocument2) for my XML doc (the one to be
>>   validated), and use the loadxml method which also takes a string
>>   argument representing the text of my xml file.
>> - Check for the DOM object's validate.errorCode. If its 0, success,
>>   otherwise report the error.
>> 
>> But I get "Error trying to create object specified in the tag....COM
>> error 0x800401F3. Invalid class string" on the
>> IXMLDOMSchemaCollection2 call.

> The calling conventions for creating objects changed slightly 
> between MSXML 3 and 4; make sure you're specifying the version 
> number along with the name, such as 
> IXMLDOMSchemaCollection2.4.0

> The documentation at
> http://msdn.microsoft.com/library/en-us/dnmsxml/html/whatsnew40rtm.asp
> has a fuller explanation of this.

> - Matthew

> -----------------------+
> cf-xml mailing list
> http://torchbox.com/xml/list.cfm


-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm

-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm

Reply via email to