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. how to get XML file.

how to get XML file.

Scheduled Pinned Locked Moved XML / XSL
csharpxmltutorial
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.
  • A Offline
    A Offline
    AtulRane
    wrote on last edited by
    #1

    Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate

    R M 2 Replies Last reply
    0
    • A AtulRane

      Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate

      R Offline
      R Offline
      Russell Jones
      wrote on last edited by
      #2

      Use an xmldocument object and the createelement and appendchild methods to create your new elements and add them to the document tree. you can output the contents of the xmldocument element using the xmldocument.xml method. Russell

      1 Reply Last reply
      0
      • A AtulRane

        Hi, I have some variables public string clientCase; public string vmlCase; public string caseDate; public string caseType; public string category; public string testName = string.Empty; public string comment; public string orderdBy; know i want to make a XML file from it using c#.net in this format. clientCase testname testname testname comment caseDate

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Check out the XmlSerializer class.

        --Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen

        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