I am looking for a good tutorial on XML pull processing (e.g. StAX) using a functional approach -- no mutable values.
I am imagining that it will involve lots of recursive procedures that process interesting elements and bypass uninteresting ones.
Scala code would be preferable, but I can probably make my way through algorithms in any of the functional languages.
Any ideas or suggestions?
Scales Xml Pull Parsing provides a simple abstraction over pull parsing (via stax and Scalaz Iteratees). Version 0.5 also adds asynchronous pull parsing to the mix.
There is plenty of code in the above mix but it would be great if you could say what kind of xml structure you are processing, it may help make other suggestions.