caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <Alain.Frisch@inria.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] xml tree -- variant type tree
Date: Tue, 28 Feb 2006 16:52:32 +0100	[thread overview]
Message-ID: <440471C0.20605@inria.fr> (raw)
In-Reply-To: <200602281643.29063.micha-1@fantasymail.de>

Michael Wohlwend wrote:
> I have used expat to parse my xml. To get more managable code I only use expat 
> to fill a queue with the tags found: Start(tag,attr list) and End(tag,text). 
> Then I make a stream of the function which reads that queue and can use 
> ocaml's streamparsers to parse my xml and build my data structures quite 
> easy. It's short, fast and easy changeable. The streamparses can watch only 
> for the relevant tags to get the desired information and build the result.

FWIW, this would be even simpler with PXP's pull parsers (you call a 
function to get the next event instead of providing call-backs).

-- Alain


  reply	other threads:[~2006-02-28 15:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 15:23 Hendrik Tews
2006-02-28 15:43 ` [Caml-list] " Michael Wohlwend
2006-02-28 15:52   ` Alain Frisch [this message]
2006-02-28 15:47 ` Richard Jones
2006-02-28 15:57   ` Michael Wohlwend
2006-02-28 16:24     ` Alain Frisch
2006-02-28 18:11       ` Michael Wohlwend
2006-02-28 20:56 ` philip

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=440471C0.20605@inria.fr \
    --to=alain.frisch@inria.fr \
    --cc=caml-list@yquem.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).