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

查看:160
本文介绍了哪个Haskell XML库要使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到Haskell中有一些XML处理库。




  • HaXml 似乎是最受欢迎的(根据 dons

  • HXT 似乎是最先进的(但也是最难学的感谢箭头)

  • xml 似乎只是基本的解析器

  • HXML 似乎被遗弃

  • tagsoup和tagchup

  • libXML和libXML SAX绑定



p>


  • 非常强大(从XML中提取数据和修改XML)

  • 未来很长时间

  • 成为社区选择(默认选择)



<虽然上面的大部分内容似乎足以满足我目前的需求,选择其中一个的原因是什么?



UPD 20091222



有关许可证的一些说明:




解决方案

我会推荐:


  1. xml ,如果你的任务很简单

  2. haxml ,如果您的任务很复杂

  3. hxt ,如果你喜欢箭头



如果您需要高性能,请使用hexpatrel =nofollow noreferrer> hexpat

I see that there is a few of XML processing libraries in Haskell.

  • 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

  • to be reasonably powerful (to extract data from XML and to modify XML)
  • likely to be supported long time in the future
  • to be a "community choice" (default choice)

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:

解决方案

I would recommend:

  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天全站免登陆