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. Web Development
  3. ASP.NET
  4. write on xml file

write on xml file

Scheduled Pinned Locked Moved ASP.NET
tutorialxmlhelp
4 Posts 2 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.
  • M Offline
    M Offline
    Mohammad Dabaan
    wrote on last edited by
    #1

    how i can write some data on exiting xml file without deleting its previous saved data on it. i want to know also how to delete an element, for example assume i have an xml file with these data: Mog 3:3 ter 56:3 i want to delete the city with the name mog, so i mean i want to delete the first 4 lines of the above given example please help help Thanks alot Hamody

    C 1 Reply Last reply
    0
    • M Mohammad Dabaan

      how i can write some data on exiting xml file without deleting its previous saved data on it. i want to know also how to delete an element, for example assume i have an xml file with these data: Mog 3:3 ter 56:3 i want to delete the city with the name mog, so i mean i want to delete the first 4 lines of the above given example please help help Thanks alot Hamody

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

      The XmlDocument class is what you need, it allows you to modify XML using a well defined interface ( called the Document Object Model or DOM ). You'd use XPath to search for the city whose name is Mog, then remove it.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      M 1 Reply Last reply
      0
      • C Christian Graus

        The XmlDocument class is what you need, it allows you to modify XML using a well defined interface ( called the Document Object Model or DOM ). You'd use XPath to search for the city whose name is Mog, then remove it.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        M Offline
        M Offline
        Mohammad Dabaan
        wrote on last edited by
        #3

        thnx, i did it, but please i need another help, i want to add datagridview and make its data source from xml file, i did up to this thing but i want to add a cloumn which will contain a hyperlinks, how to add hyperlinks on the datagridview on the windows projects ;-)

        Thanks alot Hamody

        C 1 Reply Last reply
        0
        • M Mohammad Dabaan

          thnx, i did it, but please i need another help, i want to add datagridview and make its data source from xml file, i did up to this thing but i want to add a cloumn which will contain a hyperlinks, how to add hyperlinks on the datagridview on the windows projects ;-)

          Thanks alot Hamody

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

          I've not used that before, can you define the column formats like you do in ASP.NET ?

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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