English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
ANNOUNCE: Xmlm 1.0.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-17 (23:26)
From: Bünzli_Daniel <daniel.buenzli@e...>
Subject: ANNOUNCE: Xmlm 1.0.0

A new version of Xmlm is available. It is incompatible with the
previous one. The callback interface was dropped in favour of a
streaming (pull) interface. The tree interface was dropped in
favour of a custom tree construction interface tightly integrated
with the streaming interface. This has the following advantages :

* The input and output processes become symmetric.
* Reclaim your recursion ! There no inversion of control, the client  
   the parsing process.
* Makes it easy to create tag level parsers and use parser combinator
* Allows to use the custom tree api on specific parts of the
   document only.

You can get a feel of the new interface by looking at the examples at

Other significant changes are :

* Namespace support, all names are now expanded names (attributes  
   to namespaces are preserved in the result).
* Whitespace stripping respects the xml:space attribute.
* Xmlm is functorized on string and internal buffer types. Among
   other things this can be used to perform hash-consing, to
   overcome caml string limitations or to process the character
   stream, e.g. to normalize unicode characters or to convert to a
   custom encoding.
* UTF-8 documents can start with an UTF-8 encoded BOM.
* The file test/xhtml.ml couples each XHTML character entity with
   its corresponding UTF-8 encoded character string. You can use
   it to program a suitable entity callback to parse xhtml.

(New) project homepage :  http://erratique.ch/software/xmlm

As always, your (possibly negative yet constructive) feedback is