Namespaces

 
1.0.0-SNAPSHOT permalink Arrow_down_16x16

xml-zip

net.cgrand.xml

  • (xml-zip root)
Returns a zipper for xml elements (as from xml/parse),
given a root element

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/cgrand/xml.clj:25 top

(defn xml-zip 
 "Returns a zipper for xml elements (as from xml/parse),
 given a root element"
 [root]
   (z/zipper #(or (tag? %) (document? %)) 
     (comp seq :content) #(assoc %1 :content %2) root))
Vars in net.cgrand.xml/xml-zip: assoc comp defn or seq
Used in 0 other vars

Comments top

No comments for xml-zip. Log in to add a comment.