 (ns rapscallion.xml
   (:require (clojure [xml :as xml])
             (clojure.java [io :as io]))
-  (:use (yoodls.pipe :only [pipe]))
+  (:use (yoodls [pipe :only [pipe]]))
   (:import [java.io Writer Reader StringReader]
            [java.util.concurrent LinkedBlockingQueue]
            [org.xml.sax Attributes InputSource]

(extend-protocol AsInputSource
  String
  (input-source [s]
    (let [^Reader r (if (.startsWith s "<")
                      (StringReader. s)
                      (io/reader s))]
      (InputSource. r)))

  The event types and their associated data are:
    [:start-element tag attrs]
    [:end-element tag]
    [:text string]
    [:start-cdata]
    [:end-cdata]
    [:processing-instruction target data]
