0

Hello first sorry for my english... my problem is when creating xml from dataset

in my dataset i got tables with relations.

here is my xml sample that i have created.. but i dont want this. in this one column orders are wrong
<ozel>
<vergiToplami>1107.46</vergiToplami>
<kismiVergiToplami>0</kismiVergiToplami>
<toplamKDV>1107.46</toplamKDV>
<toplamIadeEdilebilirKDV>0</toplamIadeEdilebilirKDV>
<tecilEdilecekKDV>0</tecilEdilecekKDV>
<tevkifatUygulanmayanlar>
<tevkifatUygulanmayan>
<matrah>6152.54</matrah>
<oran>18</oran>
<vergi>1107.46</vergi>
</tevkifatUygulanmayan>
</tevkifatUygulanmayanlar>
<kismiTevkifatUygulananlar />
<digerIslemler />
<indirimler>
<indirim>
<indirimTuru>102</indirimTuru>
<vergi>22.68</vergi>
</indirim>
</indirimler>
</ozel>


but i want this:

<ozel>
<tevkifatUygulanmayanlar>
<tevkifatUygulanmayan>
<matrah>6152.54</matrah>
<oran>18</oran>
<vergi>1107.46</vergi>
</tevkifatUygulanmayan>
</tevkifatUygulanmayanlar>
<vergiToplami>1107.46</vergiToplami>
<kismiVergiToplami>0</kismiVergiToplami>
<toplamKDV>1107.46</toplamKDV>
<indirimler>
<indirim>
<indirimTuru>102</indirimTuru>
<vergi>22.68</vergi>
</indirim>
</indirimler>
<toplamIadeEdilebilirKDV>0</toplamIadeEdilebilirKDV>
</ozel>

3
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by gokhantiknaz
0

What XML class are you using to write the data?
What is "kismiTevkifatUygulananlar" and why does it not appear at all in the bottom example?

0

i got tables on dataset.
i use dataset.writexml(path)

kismiTevkifatUygulananlar is a table which has a relation with <ozel> table

0

What XML class are you using to write the data?
What is "kismiTevkifatUygulananlar" and why does it not appear at all in the bottom example?

kismiTevkifatUygulananlar and some columns must be in the top

0

i got dataset that contains tables that have ralations with other tables.
i use only mydataset.WriteXml(path) command to create xml

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.