Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. put_nodeTypedValue

put_nodeTypedValue

Scheduled Pinned Locked Moved XML / XSL
linuxxmlhelptutorialquestion
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bash
    wrote on last edited by
    #1

    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); hr=pNode->put_nodeTypedValue(varTmp); // hr returns E_FAIL under IE 5.x :-( ---------------------- 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, Alex Bash

    C 1 Reply Last reply
    0
    • B Bash

      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); hr=pNode->put_nodeTypedValue(varTmp); // hr returns E_FAIL under IE 5.x :-( ---------------------- 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, Alex Bash

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Install MSXML version 3. It's available from the Microsoft site. As a bonus, it supports proper XSLT, whereas the standard did not exist when IE 5.x came out, so they had to make some guesses..... Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

      B 1 Reply Last reply
      0
      • C Christian Graus

        Install MSXML version 3. It's available from the Microsoft site. As a bonus, it supports proper XSLT, whereas the standard did not exist when IE 5.x came out, so they had to make some guesses..... Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

        B Offline
        B Offline
        berndg
        wrote on last edited by
        #3

        Correction: Install MSXML version 4. Without installing and still running on those "IE5.x systems", I suggest assigning the value to nodeValue (instead of nodeTypedValue), and validate when parsing. Where does your element get the type info from? Schemas, or DTD? What is the node's dataType value? I would assume both IE5.x and IE6.0 have a different opinion about the node's data type... Bernd

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups