如何将XmlDocument转化为DataSet?

蔑视的蔚蓝 蔑视的蔚蓝 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<AssignmentInfo>
<AttributeInfo>
<AttrType>DEPT_CODE</AttrType>
<AttrText>所属部门</AttrText>
<AttrValue>部门001</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>BTYPE</AttrType>
<AttrText>血型</AttrText>
<AttrValue>B型</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>SCODE</AttrType>
<AttrText>性别</AttrText>
<AttrValue>男</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>ECODE</AttrType>
<AttrText>学历</AttrText>
<AttrValue>本科</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>DECODE</AttrType>
<AttrText>学位</AttrText>
<AttrValue>学士</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>NACODE</AttrType>
<AttrText>民族</AttrText>
<AttrValue>汉族</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>PCODE</AttrType>
<AttrText>政治面貌</AttrText>
<AttrValue>群众</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>GRCODE</AttrType>
<AttrText>工人技术等级</AttrText>
<AttrValue>A级</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>JOBS_CODE</AttrType>
<AttrText>工种</AttrText>
<AttrValue>短工</AttrValue>
<valueDesc />
</AttributeInfo>
<AttributeInfo>
<AttrType>LCCODE</AttrType>
<AttrText>用工类别</AttrText>
<AttrValue>类别001</AttrValue>
<valueDesc />
</AttributeInfo>
</AssignmentInfo>

以上为参数,,如何将这一段Xml转化为DataSet.
使用readxml不能实现。。
...全文
评论 11
收藏 已收藏
分享
返回顶部
蔑视的蔚蓝
.NET社区 62,272 成员 668,968 内容