Currently I have a working C# program that works as follows:
- Accept .xls template with values (xls is manually created by user)
- Save the values (matching fields) to the database
Convert and write .xls to XML. Please see below sample output:
Now, what I want to do is:
- Read the existing xml (the created xml)
- Insert another set of nodes and subnodes (ReleaseLine and sub nodes). It must accept multiple ReleaseLine.
Save/create the new xml with appended nodes. Please see below output:
My existing C# program is simple but the XML nodes and hierarchy is bloody deep. I just created the C# code using new XElement
method and passing values for each nodes. Then I simply use xmlDocument.Save()
method to write the xml.
[Existing XML Program][3]
– Dec 15 '15 at 07:22