Hi All,
As a newbie to c# .net I' after some advice on how to write an xml file
in a specific format from a dataset.
I have successfully written a file but the structure is wrong.
Essentially I have two datasets one containing Batch Data and another
containing the Invoice Data.
I need to write a file with the structure shown below.
Suggestions welcome. Thanks in advance
AD
<?xml version="1.0" standalone="yes" ?>
- <MyReturnData>
- <MyBatch>
<BatchNumber>123</BatchNumber>
- <InvoiceData>
<InvoiceNumber>1</InvoiceNumber>
<MyId>27</MyId>
<CaseNumber>case1</CaseNumber>
<Accepted>Yes</Accepted>
</InvoiceData>
- <InvoiceData>
<InvoiceNumber>2</InvoiceNumber>
<MyId>28</MyId>
<CaseNumber>case2</CaseNumber>
<Accepted>Yes</Accepted>
</InvoiceData>
<RecordCount>2</RecordCount>
</MyBatch>
</MyReturnData>
fallenidol - 24 Oct 2006 15:57 GMT
you could write an XSLT file to transform the dataset xml to the format you
require

Signature
"If ignorance is bliss, then wipe the smile from my face."
> Hi All,
>
[quoted text clipped - 31 lines]
> </MyBatch>
> </MyReturnData>