Re: [Haskell] Re: Current XML libraries status
I tried to use HXT's readDocument with its tagsoup option for my application. I couldn't find a way to construct the operation that didn't run out of memory. I'll attach some code using HaXml's saxParse so you can see what I want. Is that easy to do in HXT? I simply want the text of and elements. phase1.hs Description: Binary data Please feel free to bounce this to Haskell Cafe if you feel it is more appropriate. On Oct 24, 2008, at 12:44 PM, Uwe Schmidt wrote: What you can try with HXT is to use the readDocument arrow with the option to use the tagsoup parser for parsing. Then HXT really does lazy input. _____ David F. Place [EMAIL PROTECTED] ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
Re: [Haskell] Current XML libraries status
I've used HaXml's SAX parser to parse huge XML files. It is surprising that HXT doesn't seem to have a SAX parser as I understand that it is the successor to HaXml. DOM style parsing won't work with huge files. http://hackage.haskell.org/packages/archive/HaXml/1.19/doc/html/Text- XML-HaXml-SAX.html On Oct 23, 2008, at 11:38 PM, Hugo Pacheco wrote: I remember that HaXML has also a lazy XML parser. maybe if you just need to use some specific information stored in your XML file you can earn some time/memory with it. From my experience, HXT seems faster. _____ David F. Place [EMAIL PROTECTED] ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell