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>

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?

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

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

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

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

This article has been dead for over six months. Start a new discussion instead.