Skip to content

Instantly share code, notes, and snippets.

@cgrand
Created March 26, 2014 17:05
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 cgrand/9788193 to your computer and use it in GitHub Desktop.
Save cgrand/9788193 to your computer and use it in GitHub Desktop.
=> (-> (javax.xml.parsers.DocumentBuilderFactory/newInstance)
.newDocumentBuilder
(.parse (java.io.ByteArrayInputStream.
(.getBytes
"<data>
<data url=\"http://example.org/\">hint</data>
3.14
</data>")))
.getDocumentElement
.getTextContent)
"\n hint\n 3.14\n"
;; I made this case worse by adding some annotation text to the transition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment