在没有内存方法的情况下编写6GB + XML文件 [英] Write 6GB+ XML File without In-memory Methods

查看:60
本文介绍了在没有内存方法的情况下编写6GB + XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从波形符分隔文件创建一个xml文件。挑战在于,XML可以很容易地达到6 GB以上。显然我不能使用典型的内存中方法。任何人都有类似的问题和解决方案吗?

I need to create an xml file from a tilde delimited file. The challengs is that the XML could easily be a large as 6+ GB. Obviously I cannot use the typical in-memory methods. Anyone have a similar issue and resolution?

推荐答案

查看使用XmlWriter。



https://msdn.microsoft.com/en-us/library/system.xml.xmlwriter(v = VS .110).aspx [ ^ ]
Look into using an XmlWriter.

https://msdn.microsoft.com/en-us/library/system.xml.xmlwriter(v=vs.110).aspx[^]


这篇关于在没有内存方法的情况下编写6GB + XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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