caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <Alain.Frisch@inria.fr>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] [announce] XStream: streaming XML transformation
Date: Thu, 29 Jun 2006 08:16:55 +0200	[thread overview]
Message-ID: <44A37057.4000909@inria.fr> (raw)
In-Reply-To: <20060628171842.GB32760@furbychan.cocan.org>

Richard Jones wrote:
> I downloaded the tarball and looked at
> the examples and I can't tell: can XStream transform an XML file into
> something else?
> 
> In particular we have a requirement to convert a huge XML file into
> tabular CSV data on the fly (while the XML is being downloaded).  The
> XML file just consists of a very large number of <row>...</row>
> records.

That's possible with XStream: text is just a special case of XML.
For instance, the following script extracts the stream of text from the
input XML stream.

main(_[x1] x2) -> concat(main(x1),main(x2))
main(%s x) -> %s main(x)
main(()) -> ()

-- Alain


      reply	other threads:[~2006-06-29  6:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28 15:22 Alain Frisch
2006-06-28 16:23 ` [Caml-list] " David MENTRE
2006-06-28 16:40   ` Alain Frisch
2006-06-28 17:18 ` Richard Jones
2006-06-29  6:16   ` Alain Frisch [this message]

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=44A37057.4000909@inria.fr \
    --to=alain.frisch@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /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).