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 5C1DFBC48 for ; Thu, 21 Apr 2005 13:35:02 +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 j3LBZ1Ki002119 for ; Thu, 21 Apr 2005 13:35:02 +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 NAA14607 for ; Thu, 21 Apr 2005 13:35:01 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3LBZ1Pv015603; Thu, 21 Apr 2005 13:35:01 +0200 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DOZxO-0002X2-00; Thu, 21 Apr 2005 13:34:54 +0200 Received: from [84.167.140.166] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1DOZxN-0001iP-00; Thu, 21 Apr 2005 13:34:53 +0200 Received: from flakew.lan.gerd-stolpmann.de (flakew.lan.gerd-stolpmann.de [192.168.0.32]) by gate.lan.gerd-stolpmann.de (Postfix) with ESMTP id 359A9C10A; Thu, 21 Apr 2005 13:34:53 +0200 (CEST) Subject: Re: [Caml-list] Common XML interface From: Gerd Stolpmann To: Alain Frisch Cc: Stefano Zacchiroli , Inria Ocaml Mailing List In-Reply-To: <42674F63.8030003@inria.fr> 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> <42674F63.8030003@inria.fr> Content-Type: text/plain Date: Thu, 21 Apr 2005 13:34:52 +0200 Message-Id: <1114083292.6247.25.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at concorde with ID 42678FE5.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42678FE5.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 gerd:01 stolpmann:01 donnerstag:01 frisch:01 zacchiroli:01 frisch:01 event-driven:01 event-driven:01 mutable:01 pointers:01 parsing:01 lexing:01 gerd:01 stolpmann:01 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: Am Donnerstag, den 21.04.2005, 08:59 +0200 schrieb Alain Frisch: > 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 ? For a standard representation we should use DOM, simply because lots of XML standards refer to DOM. Of course, that doesn't answer all details. > 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. And it is much simpler. > Is someone willing to set-up a mailing list for this discussion ? I have set up a mailing list: https://gps.dynxs.de/mailman/listinfo/xml-list I would suggest we wait until Monday before starting the discussion so everybody can sign up who is interested. Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------