From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 155D9BC48 for ; Thu, 21 Apr 2005 09:03:05 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3L734fb031308 for ; Thu, 21 Apr 2005 09:03:04 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA08968 for ; Thu, 21 Apr 2005 09:03:04 +0200 (MET DST) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3L734ZG031305 for ; Thu, 21 Apr 2005 09:03:04 +0200 Received: from [192.168.0.1] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by postfix4-2.free.fr (Postfix) with ESMTP id DA2E431926E; Thu, 21 Apr 2005 09:03:03 +0200 (CEST) Message-ID: <42674F63.8030003@inria.fr> Date: Thu, 21 Apr 2005 08:59:47 +0200 From: Alain Frisch User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stefano Zacchiroli Cc: Inria Ocaml Mailing List Subject: Re: [Caml-list] Common XML interface References: <810e04dc0f6bb601fb828db8d18def6c@fas.harvard.edu> <20050419.133304.40952590.debian00@tiscali.be> <20050419084526.Q20372@bowser.eecs.harvard.edu> <20050419.210334.63756712.debian00@tiscali.be> <1113940495.6248.101.camel@localhost.localdomain> <4266032F.5030307@inria.fr> <20050420132332.GA10928@fistandantilus.takhisis.org> In-Reply-To: <20050420132332.GA10928@fistandantilus.takhisis.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42675028.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42675028.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 caml-list:01 zacchiroli:01 event-driven:01 event-driven:01 mutable:01 pointers:01 parsing:01 lexing:01 ...:98 ...:98 wrote:01 wrote:01 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Stefano Zacchiroli wrote: > On Wed, Apr 20, 2005 at 09:22:23AM +0200, Alain Frisch wrote: > >>It would be great to have some common interface. An event-driven >>interface is probably easier to agree upon. There are many points to > > > Even if certainly easier to agree upon, event-driven interface for XML > are harder to program than tree based ones. Some applications really need stream based processing: loading the XML document into memory is out of question (because it is huge) and/or processing needs to happen as soon as data is available (e.g. for the Jabber protocol). > Basic tree operations should not be that hard to agree upon ... I'm afraid it will be hard. To start with, do we want mutable trees, upward pointers ? Do we want to keep locations, namespace declarations, comments, entity references ... ? Which whitespace to remove ? Anyway, a tree representation can easily be built on top of an event-driven interface. The difficult part in parsing XML is really lexing. We can try to agree upon one or several standard tree representation, but I believe we should start with an event-driven interface. Is someone willing to set-up a mailing list for this discussion ? -- Alain