大文件的 XML 拆分 [英] XML Split of a Large file

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

问题描述

我有一个 15 GB 的 XML 文件,我想将其拆分.其中大约有 3 亿行.它没有任何相互依赖的顶级节点.是否有任何可用的工具可以轻松地为我执行此操作?

I have a 15 GB XML file which I would want to split it .It has approximately 300 Million lines in it . It doesn't have any top nodes which are interdependent .Is there any tool available which readily does this for me ?

推荐答案

我认为除非您有兴趣以编程方式进行拆分,否则您必须手动拆分.这是一个示例,虽然它没有提到最大大小处理的 XML 文件.手动操作时,首先出现的问题是如何打开文件本身.

I think you'll have to split manually unless you are interested in doing it programmatically. Here's a sample that does that, though it doesn't mention the max size of handled XML files. When doing it manually, the first problem that arises is how to open the file itself.

我会推荐一个非常简单的文本编辑器——比如 Vim.在处理如此大的文件时,关闭所有形式的语法突出显示和/或折叠总是很有用的.

I would recommend a very simple text editor - something like Vim. When handling such large files, it is always useful to turn off all forms of syntax highlighting and/or folding.

其他值得考虑的选项:

  1. EditPadPro - 我从未尝试过使用这种尺寸的任何东西,但如果它是任何东西像其他 JGSoft 产品一样,它应该可以轻而易举地工作.记得关闭语法高亮.

  1. EditPadPro - I've never tried it with anything this size, but if it's anything like other JGSoft products, it should work like a breeze. Remember to turn off syntax highlighting.

VEdit - 我已经将它用于 1GB 大小的文件,效果就像什么都不是.

VEdit - I've used this with files of 1GB in size, works as if it were nothing at all.

EmEditor

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

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