Changes for clojure.core/xml-seq

biggert on Wed, 01 May 2013
;; data.xml from https://github.com/clojure/data.xml/
(use '[clojure.data.xml :only [parse-str]])

user=> (let [xml-text "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
                      <foo key=\"val\">1<bar>2</bar>3</foo>"]
         (let [root (parse-str xml-text)]
           (xml-seq root)))

({:tag :foo,                                                   
  :attrs {:key "val"},                                         
  :content ("1" {:tag :bar, :attrs {}, :content ("2")} "3")}   
 "1"                                                           
 {:tag :bar, :attrs {}, :content ("2")}                        
 "2"                                                           
 "3")                                                          
biggert on Wed, 01 May 2013
;; data.xml from https://github.com/clojure/data.xml/
(use '[clojure.xml.data :only [parse-str]])

user=> (let [xml-text "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
                      <foo key=\"val\">1<bar>2</bar>3</foo>"]
         (let [root (parse-str xml-text)]
           (xml-seq root)))

({:tag :foo,                                                   
  :attrs {:key "val"},                                         
  :content ("1" {:tag :bar, :attrs {}, :content ("2")} "3")}   
 "1"                                                           
 {:tag :bar, :attrs {}, :content ("2")}                        
 "2"                                                           
 "3")                                                          
biggert on Wed, 01 May 2013
;; data.xml from https://github.com/clojure/data.xml/
(use '[clojure.xml :only [parse]])

user=> (let [xml-text "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
                      <foo key=\"val\">1<bar>2</bar>3</foo>"]
         (let [root (parse xml-text)]
           (xml-seq root)))

({:tag :foo,                                                   
  :attrs {:key "val"},                                         
  :content ("1" {:tag :bar, :attrs {}, :content ("2")} "3")}   
 "1"                                                           
 {:tag :bar, :attrs {}, :content ("2")}                        
 "2"                                                           
 "3")                                                          
ed-g on Thu, 10 Jan 2013
;; data.xml from https://github.com/clojure/data.xml/
(use '[clojure.data.xml :only [parse-str]])

user=> (let [xml-text "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
                      <foo key=\"val\">1<bar>2</bar>3</foo>"]
         (let [root (parse-str xml-text)]
           (xml-seq root)))

({:tag :foo,                                                   
  :attrs {:key "val"},                                         
  :content ("1" {:tag :bar, :attrs {}, :content ("2")} "3")}   
 "1"                                                           
 {:tag :bar, :attrs {}, :content ("2")}                        
 "2"                                                           
 "3")