How to do command line XPath queries in huge XML files?

好久不见. 提交于 2019-12-03 12:36:23

If your XPath expressions are very simple, try xmlcutty.

From the homepage:

xmlcutty is a simple tool for carving out elements from large XML files, fast. Since it works in a streaming fashion, it uses almost no memory and can process around 1G of XML per minute.

ajslaghu

change ulimits might work. Try this:

$ ulimit -Sv 500000
$ xmllint (...your command)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!