Re: Processing a lazy sequence consuming the heap

2014-01-09 Thread Peter Ullah
My bad, was passing a reference to the function, rather than the response from the function Doh! On Thursday, January 9, 2014 11:38:44 AM UTC, Peter Ullah wrote: > > I now get "Don't know how to create ISeq from: xml_example.core$xml > clojure.lang.RT.seqFrom (RT.java:50

Re: Processing a lazy sequence consuming the heap

2014-01-09 Thread Peter Ullah
I now get "Don't know how to create ISeq from: xml_example.core$xml clojure.lang.RT.seqFrom (RT.java:505) " -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new me

Re: Processing a lazy sequence consuming the heap

2014-01-09 Thread Peter Ullah
gt; clojure.data.xml/source-seq)) > > HTH, > > Laurent > > > > 2014/1/9 Peter Ullah > > >> >> Hi Everyone, >> >> I am trying to write some Clojure to process a large (310M) XML file, in >> doing so, the code seems to consume the heap. I wr

Re: Processing a lazy sequence consuming the heap

2014-01-09 Thread Peter Ullah
le > java.io/input-stream > clojure.data.xml/source-seq)) > > HTH, > > Laurent > > > > 2014/1/9 Peter Ullah > > >> >> Hi Everyone, >> >> I am trying to write some Clojure to process a large (310M) XML file, in >> doing so, the cod

Re: Parsing large XML files

2013-12-19 Thread Peter Ullah
e the ideal solution would involve some way to express > selectors on the > Element tree like I'm used to doing with raynes/laser on zippers: > https://github.com/Raynes/laser/blob/master/docs/guide.md#screen-scraping. > > > On Tuesday, December 17, 2013 4:57:32 AM UTC

Parsing large XML files

2013-12-17 Thread Peter Ullah
Hi all, I'm attempting to parse a large (500MB) XML, specifically I am trying to extract various parts using XPath. I've been using the examples presented here: http://clojure-doc.org/articles/tutorials/parsing_xml_with_zippers.html and all was going when tested against small files, however no