
dave:
On Tue, Apr 22, 2008 at 11:57 AM, Aaron Tomb
wrote: On Apr 22, 2008, at 6:20 AM, John Goerzen wrote:
* xml A simple, lightweight XML parser/generator.
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xml
Can you describe how this compares to HaXml? Were there deficiencies in HaXml?
The main difference is that it's simpler. It's perhaps 10-20% the size of HaXml. For a program that just has to do simple XML processing, it's sometimes undesirable to have to link in a library that does a lot more than you need.
It would be convenient to have a list of unsupported XML features. The ones I've noticed so far are
* doctypes (and all doctype-related markup) * processing instructions * notations
Comments are recognized but not preserved, so you can't round-trip a document containing them.
(Personally, I use namespaces more than I use any of these, which is why I don't use HaXml.)
I've created a wiki page to start on community documentation for the light xml library, http://haskell.org/haskellwiki/XML_Light Feel free to add text, examples, etc there -- Don