mkrajnak wrote:
> I am processing a very large xml file, 13MB, using clojure.xml.parse
> and clojure.contrib.zip-filter.xml with clojure 1.0.0.
clojure.xml.parse loads the whole document into memory at once so it's
only really suitable for small (at most a megabyte or two) XML
documents. Have a look at something like Xom instead:
http://www.xom.nu/
If you're looking for an example of usage from Clojure, Mark Triggs has
a nifty wrapper for Xom that efficiently turns an XML document into a
lazy-seq (using a queue) which he routinely uses on multi-gigabyte XML
files:
http://github.com/marktriggs/xml-picker-seq