Re: Clojure.data.xml fails when element size reached 33 symbols.

2015-06-01 Thread nikolay . kudryavtsev
Thanks. Clojure.data.xml is supposed to be lazy but there's an example in the documentation that uses with-open: (with-open [input (java.io.FileInputStream. "/tmp/foo.xml")] (parse input)) And I think I even remember that this used to work before. Als

Re: Clojure.data.xml fails when element size reached 33 symbols.

2015-06-01 Thread Sean Corfield
On Jun 1, 2015, at 7:58 AM, nikolay.kudryavt...@gmail.com wrote: > This happens only when I use some kind of input stream(either > java.io.FileInputStream or io/input-stream wrapper). Just doing (parse-str > (slurp file)) works. > > So, when I have a file containing only this: >

Clojure.data.xml fails when element size reached 33 symbols.

2015-06-01 Thread nikolay . kudryavtsev
Hello. I needed to parse and emit some xml, that has no namespaces and there should be no extra whitespace that is added by clojure.xml. Decided to try using clojure.data.xml. And for me it fails as soon as the total size of an element reaches 33 symbols. This happens only when I use some kind