Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A bad XML parser

License

NotificationsYou must be signed in to change notification settings

ndmitchell/hexml

Repository files navigation

An XML DOM-style parser, that only parses a subset of XML, but is designed to be fast. In particular:

  • Entities, e.g.&, are not expanded.
  • Not all the validity conditions are checked.
  • No support for<!DOCTYPE related features.

The name "hexml" is a combination of "Hex" (a curse) and "XML". The "X" should not be capitalised because the parser is more curse and less XML.

Hexml may be suitable if you want to quickly parse XML, from known sources, and a full XML parser has been shown to be a bottleneck. As an alternative to hexml, which supports things like entities but is still pretty fast, seePugixml (with aHaskell binding - but be aware the Haskell binding of Pugixmlcan segfault, in contrast to Hexml which does not).

Hexml is tested withAFL.

If you want lenses for Hexml, seehexml-lens.

The optimisation work around Hexml spawnedXeno, a Haskell-only alternative to Hexml. There is atalk covering the performance tricks of Hexml and Xeno.


[8]ページ先頭

©2009-2025 Movatter.jp