Hacker News new | ask | show | jobs
by stephen 5967 days ago
Scala does basically the same thing with XML:

http://www.scala-lang.org/node/131

...although I doubt it does escaping by default. Should be simple enough to add while you're converting the scala.xml.NodeSeq (iirc) to text.

For an API that required both XML and JSON output, Scala's built-in XML support had us wishing the JSON version of the API was as easy as the XML version.