CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2002
    Posts
    40

    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

  2. #2
    Join Date
    Jun 2002
    Posts
    40
    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
  •  





Click Here to Expand Forum to Full Width

Featured