Problem #3 – Generate XML Report (data loaded from SQL Server and generate XML report)
Closed this issue · 0 comments
martin-nikolov commented
- Your task is to create a C# program to generate report in XML format like the sample below:
<?xml version="1.0" encoding="utf-8">
<sales>
<sale vendor="Nestle Sofia Corp.">
<summary date="20-Jul-2013" total-sum="54.75" />
<summary date="21-Jul-2013" total-sum="40.35" />
<summary date="22-Jul-2013" total-sum="40.60" />
</sale>
<sale vendor="Targovishte Bottling Company Ltd.">
<summary date="20-Jul-2013" total-sum="150.20" />
<summary date="21-Jul-2013" total-sum="709.30" />
<summary date="22-Jul-2013" total-sum="249.40" />
</sale>
<sale vendor="Zagorka Corp.">
<summary date="20-Jul-2013" total-sum="144.80" />
<summary date="21-Jul-2013" total-sum="341.59" />
<summary date="22-Jul-2013" total-sum="385.80" />
</sale>
<sales>
- Save the report in an “xml” file.
- Input: SQL Server database. Output: XML report.