XML操作读取XML文件作为输入并动态生成新的XML文件以便在C#中输出 [英] XML Operations Read XML File as input and dynamically generate new XML File for output in C#

查看:211
本文介绍了XML操作读取XML文件作为输入并动态生成新的XML文件以便在C#中输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究用C#.net开发的通用组件。在这个组件中,我得到一个XML文件作为输入参数。在进程之后,我必须创建一个新的XML文件并将我的输出写入其中。我做google并找到了很多解决方案,但不确定哪种解决方法最好。

请建议我没有太多的XML操作经验。

谢谢

Nilesh Rathod

I am working on generalized component which is developed in C# .net. In this component i get an XML file as input parameter. After process I have to create a new XML File and write my Output into it. I do google and found many solutions but not sure which is the best approach to follow.
Please suggest as i don''t have so much experience in XML Operations.
Thanks
Nilesh Rathod

推荐答案

请参阅此链接以使用xml数据进行操作



使用XPath和XmlDocument处理XML数据(C# ) [ ^ ]
Refer this link to manipulate with xml data''s

Manipulate XML data with XPath and XmlDocument (C#)[^]


我认为最好使用XmlReader来读取xml文件。



参考此链接: http://stackoverflow.com/questions/5827668/how -to-read-xml-file-using-xml-reader [ ^ ]
I think it is better to use XmlReader for reading xml files.

Refer this link: http://stackoverflow.com/questions/5827668/how-to-read-xml-file-using-xml-reader[^]


这篇关于XML操作读取XML文件作为输入并动态生成新的XML文件以便在C#中输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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