我的表中有一个 xml 字段,我的表是这样的:
id | xml |
不,我有同样的记录:
<dfs>
<field mainType="text" id="cce267e046a57c1"></field>
<field mainType="text" id="1b2490d1b11967c1"></field>
<moduleFields mainType="module" many="true" moduleId="5" id="4a191594ec2c8723">
<items>
<field mainType="text" id="4a191594ec2c8723_1_56e5290262cd1eef"></field>
<field mainType="text" id="4a191594ec2c8723_1_f311896a52011eef"></field>
<field mainType="text" id="4a191594ec2c8723_1_e68f6673b9c79eef">1</field>
</items>
<items>
<field mainType="text" id="4a191594ec2c8723_2_56e5290262cd1eef"></field>
<field mainType="text" id="4a191594ec2c8723_2_f311896a52011eef">2</field>
<field mainType="text" id="4a191594ec2c8723_2_e68f6673b9c79eef">2</field>
</items>
<items>
<field mainType="text" id="4a191594ec2c8723_3_56e5290262cd1eef">3</field>
<field mainType="text" id="4a191594ec2c8723_3_f311896a52011eef">3</field>
<field mainType="text" id="4a191594ec2c8723_3_e68f6673b9c79eef">3</field>
</items>
</moduleFields>
</dfs>
我如何获得 moduleFields 子标签?
linq 到 xml 还是 xquery 呢?