Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the clojure equivalent of Nokogiri (for xml parsing with xpath and css selectors)

I'm looking for a Clojure equivalent of Nokogiri in Ruby. Specifically, I want to be able to traverse XML using CSS and XPath selectors.

like image 455
dan Avatar asked Feb 01 '11 06:02

dan


1 Answers

First a word of caution: currently, no native Clojure lib deals correctly with XML namespaces.

To traverse and transform HTML and XML using CSS-like selectors there's is Enlive (tutorial). The set of predicates supported by Enlive is open so you can easily extend its selectors.

like image 117
cgrand Avatar answered Oct 23 '22 15:10

cgrand