Skip to content

Instantly share code, notes, and snippets.

@Chouser
Created April 19, 2010 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chouser/371105 to your computer and use it in GitHub Desktop.
Save Chouser/371105 to your computer and use it in GitHub Desktop.
(->
(javax.xml.parsers.SAXParserFactory/newInstance)
.newSAXParser
(.parse (java.io.ByteArrayInputStream.
(.getBytes "<foo>bar</foo>"))
(proxy [org.xml.sax.helpers.DefaultHandler] []
(startElement [_ _ n _]
(prn n)))))
; "HTML"
; "HEAD"
; "BODY"
; "FOO"
;=> nil
; Where do all these HTML tags come from, and
; how can I make them stay away??
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment