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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id E8BF9BBC4 for ; Tue, 17 Mar 2009 13:01:01 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosCANstv0nBNu7+hWdsb2JhbACVWwEBAQoLCgUTviSDfgY X-IronPort-AV: E=Sophos;i="4.38,378,1233529200"; d="scan'208";a="25724884" Received: from amazone1.ujf-grenoble.fr ([193.54.238.254]) by mail1-smtp-roc.national.inria.fr with ESMTP; 17 Mar 2009 13:01:01 +0100 Received: from tana2.ujf-grenoble.fr (tana2.ujf-grenoble.fr [152.77.24.22]) by amazone1.ujf-grenoble.fr (8.13.7/8.13.7/Configured by JE 21 07 2006) with ESMTP id n2HC0rIS012802; Tue, 17 Mar 2009 13:00:53 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id 87E3A56456; Tue, 17 Mar 2009 13:00:53 +0100 (CET) X-UJF-AV: Scanned on tana2.ujf-grenoble.fr Received: from tibre2.ujf-grenoble.fr (tibre2.ujf-grenoble.fr [152.77.24.10]) by tana2.ujf-grenoble.fr (Postfix) with ESMTP id 6568B56447; Tue, 17 Mar 2009 13:00:53 +0100 (CET) Received: from fourier.ujf-grenoble.fr (fourier.ujf-grenoble.fr [152.77.212.18]) by tibre2.ujf-grenoble.fr (8.14.2/8.14.2) with ESMTP id n2HC0pGW030833; Tue, 17 Mar 2009 13:00:53 +0100 (CET) (envelope-from michael.le_barbier@laposte.net) Received: from localhost (localhost [127.0.0.1]) by fourier.ujf-grenoble.fr (Postfix) with ESMTP id 648DDD01E7; Tue, 17 Mar 2009 13:00:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at fourier.ujf-grenoble.fr Received: from fourier.ujf-grenoble.fr ([127.0.0.1]) by localhost (fourier.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hTHe3cb24mna; Tue, 17 Mar 2009 13:00:53 +0100 (CET) Received: from ifpoolext1.ujf-grenoble.fr (ifpoolext1.ujf-grenoble.fr [193.48.255.244]) by fourier.ujf-grenoble.fr (Postfix) with ESMTP id 4A32DD0096; Tue, 17 Mar 2009 13:00:53 +0100 (CET) Cc: caml-list Message-Id: From: =?ISO-8859-1?Q?Micha=EBl_Le_Barbier?= To: =?ISO-8859-1?Q?R=E9mi_Dewitte?= In-Reply-To: <2184b2340903170401m3c5ba0a5yd0daf37cf4c9ddbb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Caml-list] XML output Date: Tue, 17 Mar 2009 13:00:16 +0100 References: <2184b2340903170401m3c5ba0a5yd0daf37cf4c9ddbb@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; pxp:01 printf:01 cheers:01 encode:01 caml-list:01 remi:01 parse:02 output:02 suggestion:03 module:03 handles:03 library:03 i'd:06 somewhere:06 ecrit:06 Le 17 mars 09 =E0 12:01, R=E9mi Dewitte a =E9crit : > Hello, > > I have used pxp to parse xml and I am happy with it. I'd like now to =20= > produce xml and wonder what are the options to do so (possibly the =20 > simpliest). > > I think I am going to start with the Printf module. I wonder how =20 > well it handles utf8 for example. And I'll have to write a kind of =20 > xml_encode function. I am pretty sure it has already be done =20 > somewhere ! I am also very interesting in this question. Besides Gerd's =20 suggestion, is there a solution that can help writing SGML-ish thingies? Maybe the Eiom library (part of the OCsigen project) can also interest =20= you, although I never used it and that it might be focused on HTML. --=20 Cheers, Micha=EBl