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.9 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 891EEBBC4 for ; Tue, 17 Mar 2009 13:53:43 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqgBAIM6v0lQW+UCe2dsb2JhbACVWwEBFiIEvkWDfgY X-IronPort-AV: E=Sophos;i="4.38,378,1233529200"; d="scan'208";a="24445504" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 17 Mar 2009 13:53:43 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LjYnd-0000jF-BI for caml-list@inria.fr; Tue, 17 Mar 2009 12:53:41 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Mar 2009 12:53:41 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Mar 2009 12:53:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: XML output Date: Tue, 17 Mar 2009 12:53:30 +0000 (UTC) Message-ID: References: <2184b2340903170401m3c5ba0a5yd0daf37cf4c9ddbb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre0.9.9-102 (Linux) Sender: news X-Spam: no; 0.00; le-gall:01 printf:01 ocamlduce:01 cduce:01 ocaml:01 ocaml:01 ocamlduce:01 afaik:01 compiler:01 git:98 git:98 wrote:01 encode:01 remi:01 tree:02 On 17-03-2009, RĂ©mi Dewitte wrote: > > I think I am going to start with the Printf module. I wonder how well it > handles utf8 for example. And I'll have to write a kind of xml_encode > function. I am pretty sure it has already be done somewhere ! > Maybe it is a bit overkilling, but there is also ocamlduce. See there: http://www.cduce.org/ocaml (dev for ocaml 3.11:) http://ocamlduce.forge.ocamlcore.org/ http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=ocamlduce/ocamlduce.git;a=summary OCamlduce can also be used with Eliom/OCsigen. AFAIK, using ocamlduce can help you to type check your output tree directly within OCaml compiler... Regards Sylvain Le Gall