Hello all, I currently working on a program that allow to append new xml node into a existing xml doc.
The following is my senario:
I need to generate few report based on 2 different client, Client1 and Client2.
Each client have 1 report title and config tag.
How can I add 1 more report title and config tag under Client1?
Currently I have a XML contain the following info:
Any idea how to append a new ReportTitle record under Client1 to achieve below?
Changes is at Line 7 to 9.
Anyone have experience or sample about this situation in C#?
Thank you very much.
The following is my senario:
I need to generate few report based on 2 different client, Client1 and Client2.
Each client have 1 report title and config tag.
How can I add 1 more report title and config tag under Client1?
Currently I have a XML contain the following info:
Code:
<?xml version="1.0"?>
<ReportModule>
<Client Client="Client1">
<ReportTitle Title="Client1 Monthly Report">
<Config>C:\\Client1 Monthly Report.xml</Config>
</ReportTitle>
</Client>
<Client Client="Client2">
<ReportTitle Title="Client2 Monthly Report">
<Config>C:\\Client2 Monthly Report.xml</Config>
</ReportTitle>
</Client>
</ReportModule>
Changes is at Line 7 to 9.
Code:
<?xml version="1.0"?>
<ReportModule>
<Client Client="Client1">
<ReportTitle Title="Client1 Monthly Report">
<Config>C:\\Client1 Monthly Report.xml</Config>
</ReportTitle>
<ReportTitle Title="Client1 Monthly Report 2">
<Config>C:\\Client1 Monthly Report 2.xml</Config>
</ReportTitle>
</Client>
<Client Client="Client2">
<ReportTitle Title="Client2 Monthly Report">
<Config>C:\\Client2 Monthly Report.xml</Config>
</ReportTitle>
</Client>
</ReportModule>
Thank you very much.
Comment