Dynamic XMLcreation
-
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
-
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
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!
-
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!
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:
-
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:
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!