代码之家  ›  专栏  ›  技术社区  ›  gregturn

目前最先进的纯python XML解析器是什么?

  •  6
  • gregturn  · 技术社区  · 17 年前

    考虑到我想编写可以在Google App Engine和jython中运行的python代码,C扩展不是一个选择。Amara是一个不错的库,但由于它的C扩展,我不能在这两个平台上使用它。

    4 回复  |  直到 17 年前
        1
  •  7
  •   Aaron Maenpaa    17 年前
        2
  •  4
  •   brettkelly    17 年前

    还有 Beautiful Soup (它可能更倾向于HTML,但它也支持XML)。

        3
  •  1
  •   Nicolas Dumazet    17 年前

    xml.sax 是一个内置的SAX解析器

        4
  •  1
  •   Kenny164    17 年前

    我通常会推荐lxml,但由于它使用C库(libxml),正如Aaron已经建议的那样,另一种选择必须是ElementTree(据我所知,有纯python和C实现)。 Found this via google search