aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/lazy_xml.clj
diff options
context:
space:
mode:
authorChouser <chouser@n01se.net>2009-04-09 03:59:58 +0000
committerChouser <chouser@n01se.net>2009-04-09 03:59:58 +0000
commit72336027585b54254ddc17ad9c90541e2a09c789 (patch)
tree11a94b06d37e7a3c94cd84c6c74114a5b6e8666f /src/clojure/contrib/lazy_xml.clj
parent86ecadd04ca189e44b4cb68e5bd6e5488c8f6029 (diff)
lazy-xml: fix laziness
Diffstat (limited to 'src/clojure/contrib/lazy_xml.clj')
-rw-r--r--src/clojure/contrib/lazy_xml.clj3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clojure/contrib/lazy_xml.clj b/src/clojure/contrib/lazy_xml.clj
index 929ce025..72b6c5a5 100644
--- a/src/clojure/contrib/lazy_xml.clj
+++ b/src/clojure/contrib/lazy_xml.clj
@@ -101,9 +101,10 @@
[[elem & events]]
(lazy-seq
(let [sibs (siblings events)]
+ ;(prn :elem elem)
(cons
(struct element (:name elem) (:attrs elem) (drop-last sibs))
- (last sibs)))))
+ (lazy-seq (last sibs))))))
(defn parse-trim
"Parses the source s, which can be a File, InputStream or String