根据Web应用程序C#中的标记将xml文件拆分为小文件 [英] Spliting a xml file into small files based on the tag in web app C#

查看:80
本文介绍了根据Web应用程序C#中的标记将xml文件拆分为小文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大的xml文件(我已将其从Excel转换为xml),并希望获得定义数量的< NewSheet>节点,并希望将每组< NewSheet>存储在新的XML中(在C#中).
解决此问题的最佳方法是什么.

I have a large xml file (which i converted to xml from Excel)and want to get a defined number of <NewSheet> nodes from it.and want to store each set of<NewSheet>in a new XML.(in C#)
What''s the best way to handle this.

推荐答案

您到底坚持了什么?如果使用 http://msdn.microsoft.com/en,这似乎很简单-us/library/system.xml.linq.xdocument.aspx [ ^ ]
这是我用于xml解析/修改的内容.
What exactly are you stuck on? It seems straight forward if you use http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument.aspx[^]
Which is what I use for my xml parsing/modifying.


这篇关于根据Web应用程序C#中的标记将xml文件拆分为小文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆