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 file
<elema> opens : OK
All <elemb> elements are written at once until </elemb>
Then, all <elemc> elements are written at once until </elemc>
And finally </elema>
And I need to have in my file
Open <elema>
first element of B
first of C
etc …
second of B
second of C,
etc …
And finally </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.