C#中,将数据库中的数据,组织成比较复杂的XML结构有哪些方法没写过生成xml的代码,没有头绪.希望大家给点结构参考.将数据表中的数据转换成以下格式.
<root> <表集合> <表1>
<字段1>
</字段1>
<字段2>
</字段2>
<字段3>
</字段3>
</表1> <表2>
<字段1>
</字段1>
<字段2>
</字段2>
<字段3>
</字段3>
</表2> </表集合>
</root>
<root> <表集合> <表1>
<字段1>
</字段1>
<字段2>
</字段2>
<字段3>
</字段3>
</表1> <表2>
<字段1>
</字段1>
<字段2>
</字段2>
<字段3>
</字段3>
</表2> </表集合>
</root>
http://kb.cnblogs.com/page/42600/