MSXML support in CF

Biomilk

Guppy
Hi,
I am interested in using the MSXML class's methods for skirting down a DOM tree. I hate the cf methods. I have seen this:

<cfobject type="com"
action="create"
class="MSXML4.FreeThreadedDOMDocument"
name="oMSXML">

<cfset oMSXML.async="false">
<cfset oMSXML.load("../xml/pages.xml")>

Run on jodohost = coldfusion.runtime.com.ComObjectInstantiationException at the class attribute.

MSXML2 ostensibly loads but gives a obtuse failure error = System error: -2146697210.

Any ideas on how to get this to work?

Namely I want to use the getElementsByTagName method and others.

Thanks, Danny
 
Hello,

I am not sure support for this is included since we don't have ASP or ASP.NET and therefore don't have some of the common tools for them.
 
Hi,
Thanks for your response.
Adding this functionality is as simple as replacing the msxml2.dll file with the msxml5 dll from the ms site (free download). I don't think there is any security risk as it is just a set of tools for using xml; it is invoked as a com object in cf.
Or CF7 provides the functionality I need, too ;).
Thanks, Danny
 
Hello,

I have MSXML4 installed, the MS website doesn't show a MSXML 5 being released, but I see some sites mention it with Office 2003, which we don't have installed on any servers, will MSXML4 work for you?
 
Back
Top