|
-
November 28th, 2002, 08:23 AM
#1
put_nodeTypedValue
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.
Yours sincerely,
NYWalker
-
November 28th, 2002, 08:30 AM
#2
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?
Yours sincerely,
NYWalker
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|