Stefan Tilkov's Random Stuff

XStream

Via Elliotte Rusty Harold, I came across XStream:

XStream is a simple functional transformation language for XML documents. XML transformations written in XStream are evaluated in streaming: when possible, parts of the output are computed and produced while the input document is still being parsed. Some transformations can thus be applied to huge XML documents which would not even fit in memory.

Very nice; I’ll need to try this out next time I have a bunch of XML files to transform and XSLT seems to heavy.

Comments

On November 7, 2006 11:30 AM, Matthias said:

For the language-constrained crowd (XStream is an OCAML library), there’s STX (Streaming Transformations for XML) with an implementation in Java (http://joost.sourceforge.net/). It’s more of a language (streamable stylesheet alternative to XSL) than a library. I haven’t used it yet. I do all my transformations in SAX :-)

On November 7, 2006 1:56 PM, Stefan Tilkov said:

Good link, thanks — although even if you don’t know how to spell OCaml, you can still use XStream as it’s just a command line application.