Passing MSXML document to a activex control using JScript

I want to pass a MSXML document to an activex control using JScript. I have tried it but it sends a IDispach pointer. I also need to convert the passed xml document in to a string.

Is there anyway that I can chaneg the passed IDispatch pointer to IXMLDocument or something like that.

[286 byte] By [smk_k] at [2008-2-22]
# 1

I dont know whose IDispatch interface you have, but have you looked at IXMLDOMDocument of MSXML? http://windowssdk.msdn.microsoft.com/en-us/library/ms756987.aspx

If the IDispatch interface is of that object, you could just call QueryInterface for the required interface.

SharathUdupa at 2007-8-31 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Extension Development...