From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id BF3DABB84 for ; Thu, 29 Jun 2006 08:16:57 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k5T6Gw4a023301 for ; Thu, 29 Jun 2006 08:16:58 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA00953 for ; Thu, 29 Jun 2006 08:16:57 +0200 (MET DST) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k5T6Gv9P023298 for ; Thu, 29 Jun 2006 08:16:57 +0200 Received: from [192.168.0.2] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5C03C224DB; Thu, 29 Jun 2006 08:16:56 +0200 (CEST) Message-ID: <44A37057.4000909@inria.fr> Date: Thu, 29 Jun 2006 08:16:55 +0200 From: Alain Frisch User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] [announce] XStream: streaming XML transformation References: <44A29ED1.6000207@inria.fr> <20060628171842.GB32760@furbychan.cocan.org> In-Reply-To: <20060628171842.GB32760@furbychan.cocan.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 44A3705A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 44A37059.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 tarball:01 wrote:01 caml-list:01 data:02 alain:03 alain:03 concat:03 stream:04 stream:04 transform:04 inria:06 consists:06 examples:07 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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 ... > 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