From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 9F32DBB84 for ; Sun, 23 Nov 2008 20:03:07 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhACALM3KUnAXQIngWdsb2JhbACTHj4BARYirjGBAooBAQMBA4J5 X-IronPort-AV: E=Sophos;i="4.33,654,1220220000"; d="scan'208";a="31741521" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Nov 2008 20:03:07 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id mANJ36lv010343 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 23 Nov 2008 20:03:06 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As8AALM3KUlIDtyZimdsb2JhbACTHj4BAQEKCQwHDwWuLoECigEBAwEDgnk X-IronPort-AV: E=Sophos;i="4.33,654,1220220000"; d="scan'208";a="17512588" Received: from fg-out-1718.google.com ([72.14.220.153]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Nov 2008 20:03:06 +0100 Received: by fg-out-1718.google.com with SMTP id e21so1388930fga.25 for ; Sun, 23 Nov 2008 11:03:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LWs/Yx3atX+IGnjaFIUaSQH5gL43Z//FW7mX5ZnRpyM=; b=DEFIBtOHc5yKzwHjn1rDZENTKIbPi6AU+RkKhOZTWXJzPzNdpZtr2gCK4CvzfxY5hc 0kC5hCG8NB61VEd6+08oMA652H5AqnMt74rnPc+td20lsPGTqgmti802lUc6pM1Xl+fi wpmvUDuemjotuDGBg1R4XrnTTVkaf9/MCtVuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Wc3X1MrkiHXfZVqHFGjU32+wgR7ETS7gxTSzS3FU7N69sRkWNj1pDRqp4ni0mSKTCt acMgfJ/mW00dBnQB9WQELLl8CX0AxXXg3KWIs0u96R9spLRS7zJ/NcYCyAqTtS1Ta//u 0Zfp2Gj1JajYrBkTdky5w3xX69c8hR9UbR5+Q= Received: by 10.181.30.10 with SMTP id h10mr842094bkj.200.1227466985829; Sun, 23 Nov 2008 11:03:05 -0800 (PST) Received: by 10.180.242.10 with HTTP; Sun, 23 Nov 2008 11:03:05 -0800 (PST) Message-ID: Date: Sun, 23 Nov 2008 12:03:05 -0700 From: "Jean Krivine" To: "Dario Teixeira" Subject: Re: Re : [Caml-list] Manipulating xml files withing ocaml Cc: Adrien , "Romain Beauxis" , caml-list@inria.fr In-Reply-To: <191215.17693.qm@web111504.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <666572260811230935r452992aer42310b0022bc3b80@mail.gmail.com> <191215.17693.qm@web111504.mail.gq1.yahoo.com> X-Miltered: at concorde with ID 4929A8EA.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; krivine:01 krivine:01 ocaml:01 pxp:01 additionnal:01 dtds:01 pxp:01 dtds:01 cduce:01 ocamlduce:01 cheers:01 23,:98 wrote:01 caml-list:01 simplest:02 In my case I just want to parse a small xml file and I don't need to check for consistency so I think xml-light is fine enough. Thank you for the references though J On Sun, Nov 23, 2008 at 10:54 AM, Dario Teixeira wrote: >> PXP may be a better choice. It's harder at first, but >> not much and >> could be worth the five additionnal minutes required to >> learn it. It >> handles unicode and is still maintained (among others). > > Indeed. If you find yourself routinely having to deal with XML, > and if you need more advanced features such as validating very > complex DTDs, than learning PXP is well worth it (Xml-light > will choke on all but the simplest DTDs). > > If you are doing heavy manipulation of XML and wished for a > more "native" support in the language, then take a look at > Cduce/Ocamlduce. > > Finally, if you just need to parse a simple XML file and this > is a one-off event, then Xml-light is indeed the simplest option. > > Cheers, > Dario Teixeira > > > > >