caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Announcement: PXP 1.1.91 (development version)
@ 2002-08-18  0:41 Gerd Stolpmann
  0 siblings, 0 replies; only message in thread
From: Gerd Stolpmann @ 2002-08-18  0:41 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-18  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-18  0:41 [Caml-list] Announcement: PXP 1.1.91 (development version) Gerd Stolpmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).