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. Creating an XML File

Creating an XML File

Scheduled Pinned Locked Moved C#
csharpdatabasewinformsxmltutorial
3 Posts 3 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.
  • D Offline
    D Offline
    deanoA
    wrote on last edited by
    #1

    Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"

    C M 2 Replies Last reply
    0
    • D deanoA

      Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      First of all, it is not the Windows Forms part of the .NET framework that deals with XML. The XML classes are found in System.Xml namespace (although access to Xml files can also be made through the System.Data classes if they are database-like. Did you try searching CodeProject? I found the following articles that explain different ways of dealing with XML files: Reading an XML file using .NET[^] XML Data Files, XML Serialization, and .NET[^] Load and Save objects to XML using serialization[^] XMLFoundation[^] XML Serialization in .NET[^] --Colin Mackay--

      "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#

      1 Reply Last reply
      0
      • D deanoA

        Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"

        M Offline
        M Offline
        Manster
        wrote on last edited by
        #3

        Daljv, Here is an article I wrote which does all of the things you want to do programatically in C# in a windows application. http://codeproject.com/csharp/CSPersonalOrganizer1.asp Good Luck ;P

        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