XML Pretty Printer

18 views
Skip to first unread message

James Reeves

unread,
Jan 10, 2009, 9:14:22 AM1/10/09
to Clojure
I've written a small XML pretty printing library that may be useful
for debugging XHTML or XML outputs, especially those generated from
libraries like clj-html or compojure.html. Usage is straightforward:

=> (use 'ppxml)
nil
=> (ppxml "<html><body><h1>Hello</h1></body></html>")
<html>
<body>
<h1>Hello</h1>
</body>
</html>

I've uploaded the library to the group:
http://groups.google.com/group/clojure/web/ppxml.clj

I'm not sure if this is useful and generic enough to qualify for
clojure-contrib, but if anyone feels that it is, they are welcome to
add it :)

- James
Reply all
Reply to author
Forward
0 new messages