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.8 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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id D8A26BB84 for ; Sun, 15 Feb 2009 22:56:13 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AikCAAMemElQRFuwgWdsb2JhbACUdQEBFiK6GYQcBg X-IronPort-AV: E=Sophos;i="4.38,213,1233529200"; d="scan'208";a="35230792" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 15 Feb 2009 22:56:13 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.63) (envelope-from ) id 1LYoyA-0004Cc-Ek; Sun, 15 Feb 2009 21:56:10 +0000 Date: Sun, 15 Feb 2009 21:56:10 +0000 To: "O'Leary, John W" Cc: "caml-list@yquem.inria.fr" Subject: Re: [Caml-list] XML data binder for Ocaml Message-ID: <20090215215610.GA5814@annexia.org> References: <20090213110003.72B56BBB8@yquem.inria.fr> <4158487B9DEE0647BA23911D1C2279573DE43A8C@orsmsx501.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4158487B9DEE0647BA23911D1C2279573DE43A8C@orsmsx501.amr.corp.intel.com> User-Agent: Mutt/1.5.13 (2006-08-11) From: Richard Jones X-Spam: no; 0.00; ocaml:01 bindings:01 ocaml:01 pointers:01 cduce:01 2009:98 wrote:01 partial:01 caml-list:01 data:02 data:02 usable:02 api:02 fri:05 anyway:05 On Fri, Feb 13, 2009 at 03:26:13PM -0800, O'Leary, John W wrote: > I'm looking for a tool that will take an XML data schema (.xsd) and > generate data bindings in Ocaml. In other words, I am seeking an Ocaml > equivalent to XSD (for C and C++) and JAXB (for Java). > > Googling didn't immediately turn up anything meeting the above > description. I'd very much appreciate any pointers. XSD as in the crazy-complicated quasi-standard used in SOAP, WSDL etc? I'm not sure you'll find any implementations in OCaml - it's hard enough to implement when you have a large team of people available to you. I did a very very partial implementation using CDuce as part of my SOAP client code for the Google AdWords API. It's not directly usable, but maybe you can have a look at it for inspiration anyway: http://merjis.com/developers/oc-soap Rich. -- Richard Jones Red Hat