Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Announcement: PXP 1.1.91 (development version)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerd Stolpmann <info@g...>
Subject: [Caml-list] Announcement: PXP 1.1.91 (development version)
Hi list,

a new development version of PXP is available. The changes:

- In addition to the "push" parser, there is now also a
  "pull" parser to process XML documents in an event-based
  way. Recall the difference: A push parser invokes a
  callback function supplied by the user to send the events
  to the user program, as in

  let handler event = ... in
  process_entity ... handler ...

  A pull parser returns a function, and by calling the function
  the user gets the next event:

  let next_event = create_pull_parser ... in
  let event = next_event() 

  An interesting application of pull parsing is that one can
  easily build a stream from such a parser:

  let stream = Stream.from next_event

  Stream parsers can be used to analyze the XML document. The
  PXP distribution contains an example of that.

- There is a new entry point for event-based parsers: Entry_expr.
  It parses a single element, a single processing instruction,
  a single comment, or whitespace.

- The curly braces {, {{, }}, and } can now be used inside
  attributes to invoke escape parsing (calling another parser
  from PXP). In the previous version 1.1.90, this worked only
  in character data nodes.
  
The new version can be found at the usual place:

http://www.ocaml-programming.de/packages/pxp-1.1.91.tar.gz

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