Click to See Complete Forum and Search --> : put_nodeTypedValue


NYWalker
November 28th, 2002, 07:23 AM
Hi Gurus,

I have a greate trouble while updating the value of text node. I have a pointer to the node from existing XML document:

----------------------
IXMLDOMNodePtr pNode;
TCHAR szTmp[100];
VARIANT varTmp;

_stprintf(szTmp,"%d",newid);
varTmp.vt=VT_BSTR; varTmp.bstrVal=_bstr_t(szTmp);
pNodeFilter->put_nodeTypedValue(varTmp);
----------------------

This works on systems with IE 6.0 installed.
This doesn't work on systems with IE 5.x installed.

Please help me! How to update the node on systems with IE 5.x installed ?

I'm a XML novice so any ideas appreciated.

NYWalker
November 28th, 2002, 07:30 AM
Sorry for my previous post. The code sample must be:

----------------------
IXMLDOMNodePtr pNode;
TCHAR szTmp[100];
VARIANT varTmp;

_stprintf(szTmp,"%d",newid);
varTmp.vt=VT_BSTR; varTmp.bstrVal=_bstr_t(szTmp);
pNode->put_nodeTypedValue(varTmp);
hr=pNode->put_nodeTypedValue(varTmp);
----------------------

hr returns E_FAIL under IE 5.x. Any ideas?