我就是想将GW_B_JJCD这个作为一个根节点,将拥有相同Name的Field里面的值作为子节点插入到跟节点中。我觉得理想的结果xml就是这样的
<?xml version="1.0" standalone="yes"?>
<FlowConfig Name="sa">
<Table Name="GW_B_JJCD">
<Field>ID</Field>
<Field>MC</Field>
</Table>
<Table Name="GW_B_MJ">
<Field>ID</Field>
<Field>MC</Field>
</Table>
</FlowConfig>
遍历DataTable是肯定必须的,但是我想应该将DataTable中的第一列取出来先去掉重复的,然后再根据Name属性去找到Field里面的值。有点迷茫,需要想办法去写不重复的根节点,还要给它加上多个子节点。