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. C#
  4. Moving xml nodes

Moving xml nodes

Scheduled Pinned Locked Moved C#
questionxmltutorial
4 Posts 4 Posters 0 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.
  • T Offline
    T Offline
    thepersonof
    wrote on last edited by
    #1

    Hi I have a structure similar to this: how can I change it to this: I need to move all the children and delete the parent, but i can't figure out how to do it. What do I need to do?? cheers -- modified at 11:49 Sunday 18th September, 2005

    A H D 3 Replies Last reply
    0
    • T thepersonof

      Hi I have a structure similar to this: how can I change it to this: I need to move all the children and delete the parent, but i can't figure out how to do it. What do I need to do?? cheers -- modified at 11:49 Sunday 18th September, 2005

      A Offline
      A Offline
      Alomgir Miah
      wrote on last edited by
      #2

      Please re-post. Cant see anything. Live Life King Size Alomgir Miah

      1 Reply Last reply
      0
      • T thepersonof

        Hi I have a structure similar to this: how can I change it to this: I need to move all the children and delete the parent, but i can't figure out how to do it. What do I need to do?? cheers -- modified at 11:49 Sunday 18th September, 2005

        H Offline
        H Offline
        Heinz_
        wrote on last edited by
        #3

        Your structure is not visible as the way you typed it, the message board treated it as an html tag. But, as you described your problem, i think you should look at "WriteContentTo" and "WriteTo" Methods derived from XmlNode. CloneChild should work too but is a bit painful if you got more than one child. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlnodeclasswritecontenttotopic.asp[^] Good Luck.

        1 Reply Last reply
        0
        • T thepersonof

          Hi I have a structure similar to this: how can I change it to this: I need to move all the children and delete the parent, but i can't figure out how to do it. What do I need to do?? cheers -- modified at 11:49 Sunday 18th September, 2005

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          First step: modify your post and check "Do not treat <'s as HTML tags" checkbox! Never forget: "Stay kul and happy" (I.A.)
          David's thoughts / dnhsoftware.org / MyHTMLTidy

          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