Question DataSet with multiple Datatables and WriteXml() output order

hotstaff

New member
Joined
Feb 1, 2011
Messages
1
Programming Experience
10+
Hi everyone !



I have used xsd.exe to produce a VB class matching my XSD file.

The latter is rather long, but very simple:

<ElemA>

|

|------> <ElemsB>

|-------------> <attrB1/>

|-------------> <attrB2/>

|------> </ElemsB>

|

|------> <ElemsC>

|-------------> <attrC1/>

|-------------> <attrC2/>

|------> </ElemsC>

…etc …

</ElemA>

Everything works great, the files outputs with the WriteXml() method.

However, in the current file:
<ElemA> opens : OK
All <ElemB> elements are written at once until </ElemsB>
Then, all <ElemC> elements are written at once until </ElemsC>
etc ...
</ElemA>


But I need to have
Open <ElemA>
first element of B
first of C
etc …
second of B
second of C,
etc …
</ElemA>
I need to underline I can't make changes to the xsd as it's provided by a third-party.

In the data, there is always count(ElemsB) = count(ElemsC) = etc …

I'm concerned that I'd have to overload WriteXml()

Thanks for your help.

All the best,

Sebastien.
 
Back
Top