caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: caml-list@inria.fr
Subject: [Caml-list] Announcement: PXP 1.1.91 (development version)
Date: Sun, 18 Aug 2002 02:41:37 +0200	[thread overview]
Message-ID: <20020818004137.GC996@ice.gerd-stolpmann.de> (raw)

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


                 reply	other threads:[~2002-08-18  0:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020818004137.GC996@ice.gerd-stolpmann.de \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).