转换XML ==>新的XML [英] Transforming XML ==> new XML

查看:74
本文介绍了转换XML ==>新的XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家。


我是LINQ to XML的新手,我是关于XML转换的信息。我认为这将是我的XML问题的解决方案。是否有人可以提供将XML转换为另一种XML的复杂样本。我正在使用Visual C#.net。


提前致谢。


 

解决方案

基本技术是读取XML文件,然后使用Linq处理XML,然后再将其写出来。


这是读取XML文件的示例。


http://msmvps.com/blogs/deborahk/archive/2010/06/06/reading-an-xml-file.aspx


这里是一个处理它并写出来的例子:


http://msmvps.com/blogs/deborahk/archive/2010/06/07/writing-to-an-xml-file-with-attributes.aspx  


如果您需要一些转换XML的技巧,请随时提供有关源和目标XML的更多信息,我们可以提供更具体的信息。


希望这会有所帮助。


Hi experts.

I am new to LINQ to XML and I across this information about XML transformation. I think this will be the solution to my XML issue. Is there anyone who can provide a complex sample of transforming XML into another XML. I am using Visual C# .net.

Thanks in advance.

 

解决方案

The basic technique is to read in the XML file, then process it with Linq to XML, then you can write it out again.

Here is an example of reading an XML file.

http://msmvps.com/blogs/deborahk/archive/2010/06/06/reading-an-xml-file.aspx

Here is an example of processing it and writting it out:

http://msmvps.com/blogs/deborahk/archive/2010/06/07/writing-to-an-xml-file-with-attributes.aspx 

If you want some tips for transforming your XML, feel free to provide a little more information on your source and destination XML and we can provide more specifc information.

Hope this helps.


这篇关于转换XML ==>新的XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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