nathell / clj-tagsoup

A HTML parser for Clojure.
Other
181 stars 22 forks source link

would like a parse-xml-string function #9

Closed satyagraha closed 11 years ago

satyagraha commented 11 years ago

I tried creating one as below but the startparse function is private:

(defn parse-xml-string
  [s]
  (xml/parse (-> s .getBytes ByteArrayInputStream.) tagsoup/startparse-tagsoup))

Any ideas welcome.

satyagraha commented 11 years ago

Ah, this works;

(defn parse-xml-string
  [s]
  (tagsoup/parse-xml (-> s .getBytes ByteArrayInputStream.)))