aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/lazy_xml.clj
diff options
context:
space:
mode:
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