From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA10397; Wed, 8 Sep 2004 15:59:05 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA11035 for ; Wed, 8 Sep 2004 15:59:04 +0200 (MET DST) Received: from mail.npc.de (fw.npc.de [62.225.140.214]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i88Dx39m017013 for ; Wed, 8 Sep 2004 15:59:04 +0200 Received: from styx.ffm.npc.de (pD9EA7837.dip.t-dialin.net [217.234.120.55]) by mail.npc.de (Postfix) with ESMTP id 135091822; Wed, 8 Sep 2004 15:59:03 +0200 (CEST) Received: from hera.ffm.npc.de (hera.f.npc.de [192.168.130.8]) by styx.ffm.npc.de (Postfix STYX NPC GmbH) with ESMTP id F25EDC437; Wed, 8 Sep 2004 15:59:01 +0200 (CEST) Received: from ares.ffm.npc.de (unknown [192.168.130.32]) by hera.ffm.npc.de (Postfix HERA NPC GmbH) with ESMTP id 36F85159C9; Wed, 8 Sep 2004 15:59:01 +0200 (CEST) Received: from [192.168.130.32] (unknown [192.168.130.32]) by ares.ffm.npc.de (Postfix ARES NPC GmbH) with ESMTP id 072F81855; Wed, 8 Sep 2004 15:59:01 +0200 (CEST) Subject: [Caml-list] Announcement: PXP 1.1.95 From: Gerd Stolpmann To: caml-list@inria.fr Cc: ocaml-pxp-users@orcaware.com Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 08 Sep 2004 15:59:00 +0200 Message-Id: <1094651941.11086.44.camel@ares> Mime-Version: 1.0 X-Miltered: at nez-perce with ID 413F1027.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pxp:01 gerd:01 stolpmann:01 pxp:01 apis:01 bug:01 alain:01 frisch's:01 wlex:01 alain's:01 slower:01 wlex:01 footprint:01 uris:01 xschema:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello list, there is a new development version of PXP, the advanced XML parser for O'Caml. The development version includes new APIs which are not yet fully stable (i.e. might still change); in general this version is useable, however. There are four major changes in this release (besides bug fixes): - This version includes a ulex-based lexical analyzer for XML. "ulex" is Alain Frisch's new lexer generator for Unicode. ulex is thought as replacement for wlex, Alain's previous generator. The resulting analyzer is a bit slower than the wlex-based, but it is much simpler to build it (it is not distributed as patch). In the long term, support for wlex will be removed in favor of ulex. Note that there is still an ocamllex-based analyzer for Unicode, which is very fast, but also has a big memory footprint. - The namespace concept has been revised. In addition to namespace prefix normalization, the structure of the namespace declarations is now stored in namespace_scope objects. This makes it possible to remember the mapping of the original prefixes to URIs, which is useful when the prefixes also occur as XML data (e.g. in XSchema). The namespace concept is now 100 percent compatible with the W3C requirements. - The infrastructure for event-based parsing has been extended. Streams of events can now be transformed to trees and vice versa. The type of events had to be changed to allow this (so events and tree nodes contain the same information). - Finally, there is a preprocessor! This allows you to create XML trees or event streams in source code, e.g. let tree = <:pxp_tree< [ ] >> creates a node with two children. Of course, it is possible to set the properties of the created nodes/events dynamically. The syntax is not exactly XML, and parts of it have been borrowed from cduce. The preprocessor bases on camlp4. This version of PXP requires OcamlNet 0.98 (just released). This version does not include a manual (it is really out of date). Look into the commented interface files instead. Download link: http://www.ocaml-programming.de/packages/pxp-1.1.95.tar.gz More information: http://ocaml-programming.de/packages/documentation/pxp/index_dev.html Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners