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. Dynamic XMLcreation

Dynamic XMLcreation

Scheduled Pinned Locked Moved C#
helpcsharpxmlquestion
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.
  • H Offline
    H Offline
    hellamasta
    wrote on last edited by
    #1

    Hi everybody, I'm new here and I'm a newbye with C#. This is my problem. I have to build a class that can dynamically create an XML file where tags are chosen by user through a graphical interface. Data to store in the XML file are car engine data. There are a table format dataset and some single variables such as oil temperature ecc. Has someone a tip to help me in this work? Thank you

    C 1 Reply Last reply
    0
    • H hellamasta

      Hi everybody, I'm new here and I'm a newbye with C#. This is my problem. I have to build a class that can dynamically create an XML file where tags are chosen by user through a graphical interface. Data to store in the XML file are car engine data. There are a table format dataset and some single variables such as oil temperature ecc. Has someone a tip to help me in this work? Thank you

      C Offline
      C Offline
      Corinna John
      wrote on last edited by
      #2

      As most of your variables are in a table, you can store the table in a DataSet, and add the few single variables in a one-record-table in the same DataSet. The method for converting the two tables to XML is already part of the framework: DataSet.WriteXml[^] _________________________________ Please inform me about my English mistakes, as I'm still trying to learn your language!

      H 1 Reply Last reply
      0
      • C Corinna John

        As most of your variables are in a table, you can store the table in a DataSet, and add the few single variables in a one-record-table in the same DataSet. The method for converting the two tables to XML is already part of the framework: DataSet.WriteXml[^] _________________________________ Please inform me about my English mistakes, as I'm still trying to learn your language!

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

        First of all, thanks for your reply. I know how to bind a DataSet with a table stored in an XML file, but I have other problems. I have to build table in xml in the way the user wants, interactively (is it the correct word? :) ). Then I have to show the table data in a datagrid, but I've to make possible only to change values already present and making impossible to add row and columns. Is it possible? Thank you again for your help and sorry for my bad english.:sigh:

        C 1 Reply Last reply
        0
        • H hellamasta

          First of all, thanks for your reply. I know how to bind a DataSet with a table stored in an XML file, but I have other problems. I have to build table in xml in the way the user wants, interactively (is it the correct word? :) ). Then I have to show the table data in a datagrid, but I've to make possible only to change values already present and making impossible to add row and columns. Is it possible? Thank you again for your help and sorry for my bad english.:sigh:

          C Offline
          C Offline
          Corinna John
          wrote on last edited by
          #4

          Why can't you the XMLDocument[^] class? You could add remove node or attributes just as you like. _________________________________ Please inform me about my English mistakes, as I'm still trying to learn your language!

          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