要使用哪个 Haskell XML 库? [英] Which Haskell XML library to use?
本文介绍了要使用哪个 Haskell XML 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到 Haskell 中有一些 XML 处理库.
I see that there is a few of XML processing libraries in Haskell.
- HaXml 似乎是最受欢迎的(根据 dons)
- HXT 似乎是最先进的(但也是最难的感谢箭头学习)
- xml 这似乎只是基本的解析器
- HXML 似乎被放弃了
- tagsoup 和 tagchup
- libXML 和 libXML SAX 绑定
- HaXml seems to be the most popular (according to dons)
- HXT seems to be the most advanced (but also the most difficult to learn thanks to arrows)
- xml which seems to be just the basic parser
- HXML seems to be abandoned
- tagsoup and tagchup
- libXML and libXML SAX bindings
那么,如果我想要它,选择哪个库
So, which library to choose if I want it
- 相当强大(从 XML 中提取数据并修改 XML)
- 未来很可能会得到长期支持
- 成为社区选择"(默认选择)
虽然以上大部分似乎足以满足我目前的需求,但选择其中之一而不是其他的原因是什么?
And while most of the above seem to be sufficient for my current needs, what are the reason to choose one of them over the others?
UPD 20091222:
关于许可的一些注意事项:
Some notes about licenses:
- BSD 或 MIT:hexpat、hxt、libxml、tagsoup、xml
- LGPL:HaXml
- GPLv2:
- GPLv3:libxml-sax、tagchup, tagsoup-ht
- BSD or MIT: hexpat, hxt, libxml, tagsoup, xml
- LGPL: HaXml
- GPLv2:
- GPLv3: libxml-sax, tagchup, tagsoup-ht
推荐答案
我会推荐:
- xml, if your task is simple
- haxml, if your task is complex
- hxt, if you like arrows
- hexpat if you need high performance
这篇关于要使用哪个 Haskell XML 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文