Hi,
Using 'POST" method, the nsXMLHttpRequest::Send(nsIVariant * body) and
this can be an instance of nsIDOMDocument.  I have problems when
passing nsIDOMDocument to this method.

I was trying like:

nsCOMPtr<nsIDOMParser> pDOMParser;
nsCOMPtr<nsIXMLHttpRequest> pXMLHttpRequest;
...
nsIDOMDocument * pDoc;
rv = pDOMParser->ParseFromString(str.get(), "text/xml", &pDoc);

Now I try to use this:
rv = pXMLHttpRequest->Send(pDoc);

==> ERROR: cannot convert 'nsIDOMDocument *' to 'nsIVariant *'
... so I event try with:
nsCOMPtr<nsIDOMDocument> pDOM;
rv = pDOMParser->ParserFromString(str.get(), "text/xml",
Add_Refs(pDOM);
and passing pDOM to Send(pDOM) method and I get similar error of
conversion.

What did I do wrong?  I think I need to convert nsIDOMDocument type to
nsIVariant type so I can pass to this method.  Anyone out there please
point out what I need to do to make this work?

Thanks,

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to