majkinetor
Programmer
Hello
I have 3 unrelated tables in the DataSet, tables X, H1, H2.
There is nothing like primary keys or relations in them. X have N records, while H1&H2 have only 1 record.
I wont to export this DataSet in the following format
The problem is nasted part. Is there any way to set H2 to be nasted table of H1. I saw that i can impose relation at MSDN but if I do so, resulting XML will have "relation key" present in both tables (H1 & H2) so I will have to scan the resulting file afterwards to fix that. I am wondering is there any solution that can connect H2 to H1 so that WriteXML can do it without duplicating relation keys (or even writting them)
ALong with that, low priority question, is there any way to map some H1 table column as an attribute rather then element. For instance, I want first column to be added as attribut <H1 A=col_val>
Thx in advance.
I have 3 unrelated tables in the DataSet, tables X, H1, H2.
There is nothing like primary keys or relations in them. X have N records, while H1&H2 have only 1 record.
I wont to export this DataSet in the following format
Code:
<DataSetName>
<H1>
....
<H2>
...
</H2>
</H1>
<X1>
</X1>
<X2>
</X2>
...
...
<Xn>
</Xn>
</DataSetName>
The problem is nasted part. Is there any way to set H2 to be nasted table of H1. I saw that i can impose relation at MSDN but if I do so, resulting XML will have "relation key" present in both tables (H1 & H2) so I will have to scan the resulting file afterwards to fix that. I am wondering is there any solution that can connect H2 to H1 so that WriteXML can do it without duplicating relation keys (or even writting them)
ALong with that, low priority question, is there any way to map some H1 table column as an attribute rather then element. For instance, I want first column to be added as attribut <H1 A=col_val>
Thx in advance.