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. Copy XML string into a node

Copy XML string into a node

Scheduled Pinned Locked Moved XML / XSL
questionc++xmlannouncement
4 Posts 3 Posters 1 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.
  • S Offline
    S Offline
    Sascha
    wrote on last edited by
    #1

    Hi, I am working on a C++ application using MSXML 4.0. I have a update function that need to update a node of the XML document. The function only receives a XML string that contains the new XML string corresponding to the node. How can I copy the XML string into the node? Thank you.

    P 1 Reply Last reply
    0
    • S Sascha

      Hi, I am working on a C++ application using MSXML 4.0. I have a update function that need to update a node of the XML document. The function only receives a XML string that contains the new XML string corresponding to the node. How can I copy the XML string into the node? Thank you.

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #2

      Sascha wrote: How can I copy the XML string into the node? I did it in my CP+ article.

      Paul Watson
      Bluegrass
      Cape Town, South Africa

      S 1 Reply Last reply
      0
      • P Paul Watson

        Sascha wrote: How can I copy the XML string into the node? I did it in my CP+ article.

        Paul Watson
        Bluegrass
        Cape Town, South Africa

        S Offline
        S Offline
        Sascha
        wrote on last edited by
        #3

        If I am not mistaking you are using the .NET Framework. I need to do the same whiteout the framework and use directly the MSXML.dll

        A 1 Reply Last reply
        0
        • S Sascha

          If I am not mistaking you are using the .NET Framework. I need to do the same whiteout the framework and use directly the MSXML.dll

          A Offline
          A Offline
          Anders Munk
          wrote on last edited by
          #4

          Try using DocumentFragment .."The DocumentFragment object can represent a fragment of a document or portion of a document's tree. This makes it useful when implementing end user commands that allow users to rearrange a document, such as cutting and pasting.".. See details: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_obj_ixmldomdocumentfragment_0zxw.asp[^] Best regards Anders Munk

          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