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

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


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.


change ulimits might work. Try this:

$ ulimit -Sv 500000$ xmllint (...your command)