[Haskell-cafe] hxt memory useage
ndmitchell at gmail.com
Sun Jan 27 07:04:24 EST 2008
> Perhaps a more modern approach would be StAX-like rather than SAX-like? In
> either case, streaming, non-DOM.
Remember, Haskell has lazy evaluation. TagSoup is basically a SAX
approach, without the massive pain of the Java version and the API
being back to front compared to what you want. If you assume that your
XML is well formed, then I think TagSoup is already StAX as well.
TagSoup has been carefully engineered to run in constant memory.
> I am concerned by the number of people expressing willingness to abandon
> namespace support, but perhaps I'm being too much of a purist....
TagSoup has both no namespace support, and full namespace support - it
will happily read tags with namespaces in them, and its a trivial
break in your application to "deal" with them as you wish.
More information about the Haskell-Cafe