本文介绍了具有多个Datatables和WriteXml()输出顺序的DataSet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我已使用xsd.exe生成与我的XSD文件匹配的VB类.
后者相当长,但非常简单:

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>



一切正常,文件使用WriteXml()方法输出.
但是,在文件



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>



我需要强调的是,我无法对第三方提供的xsd进行更改.
在数据中,总是有count(ElemsB)= count(ElemsC)=等…
我担心必须重载WriteXml()
感谢您的帮助.

祝一切顺利,
Sebastien.



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.

推荐答案


这篇关于具有多个Datatables和WriteXml()输出顺序的DataSet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 17:05