Hidy Ho Neighbors!
I just started a new c# web project. I am going to create an XML file via user input. I have been working with .net and c# for about a year but this is my first forray into xml. I need some help.
I am able to create the XML file insert tags with text values and even attributes via text boxes.
My issue is that I get to one of the sections I'm creating and I need to insert new data in tags that don't exisit in the xml file as yet, from a datagrid. The dataGrid has 4 columnms. Two button columns and two text box columns.
I need to input cost values in one of the text columns and a text description in the other. How do I pass that to the XML file. I want the Cost value to be an attribute and the text to be the description. I will need to add a dynamic number of rows. this is the format I thought would work. Depending on how many rows the users enters.
<cost value="100.01"> This is text to describ the cost value</cost>
<cost value="200.02"> This is text to describ the next cost value</cost>
......more if needed
Then I will want to be able to load it back from the XML file later for editing.
.