DataSet with multiple Datatables and WriteXml() output order

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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, I get


<ElemA> opens : OK All <ElemB> elements are written at once until </ElemsB> Then, all <ElemC> elements are written at once until </ElemsC> etc Until </ElemA>


But I need to have in my file:


Open <ElemA> first element of B first of C etc â second of B second of C, etc â Close <ElemA>


I need to underline I cant make changes to the xsd as its provided by a third-party.
Also, in the data, there is always count(ElemsB) = count(ElemsC) = etc â
Im concerned that Id have to overload WriteXml() :-(
So, thanks for your help !

All the best,
Sebastien.

View the full article
 
Back
Top