package markup
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=a1ff6598ab29189648c77b65a9abf64542641762b7a7e529d5c0c3f4cd3f4935
md5=fd19c103a6e34ae1ac2db30d0e5edc29
Description
Markup.ml provides an HTML parser and an XML parser. The parsers are wrapped in a simple interface: they are functions that transform byte streams to parsing signal streams. Streams can be manipulated in various ways, such as processing by fold, filter, and map, assembly into DOM tree structures, or serialization back to HTML or XML.
Both parsers are based on their respective standards. The HTML parser, in particular, is based on the state machines defined in HTML5.
The parsers are error-recovering by default, and accept fragments. This makes it very easy to get a best-effort parse of some input. The parsers can, however, be easily configured to be strict, and to accept only full documents.
Apart from this, the parsers are streaming (do not build up a document in memory), non-blocking (can be used with threading libraries), lazy (do not consume input unless the signal stream is being read), and process the input in a single pass. They automatically detect the character encoding of the input stream, and convert everything to UTF-8.
Published: 16 Mar 2016
Dependencies (4)
-
ocamlbuild
build
-
ocamlfind
build
-
uutf
<= "0.9.4"
-
ocaml
< "5.0"
Dev Dependencies (1)
-
ounit
with-test
Used by (4)
-
lambdasoup
>= "0.6" & < "0.7.2"
- learn-ocaml
- ppx_bsx
- valentine
Conflicts (1)
-
lwt
>= "4.0.0"