要使用哪个 Haskell XML 库? [英] Which Haskell XML library to use?

查看:26
本文介绍了要使用哪个 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 or MIT: hexpat, hxt, libxml, tagsoup, xml
  • LGPL: HaXml
  • GPLv2:
  • GPLv3: libxml-sax, tagchup, tagsoup-ht

推荐答案

我会推荐:

  1. xml,如果你的任务很简单
  2. haxml,如果您的任务很复杂
  3. hxt,如果你喜欢箭头
  4. hexpat 如果您需要高性能
  1. xml, if your task is simple
  2. haxml, if your task is complex
  3. hxt, if you like arrows
  4. hexpat if you need high performance

这篇关于要使用哪个 Haskell XML 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆