Previous week Up Next week


Here is the latest Caml Weekly News, for the week of February 10 to 17, 2009.

  1. XML data binder for Ocaml
  2. findlib-1.2.4 (for ocaml-3.11)

XML data binder for Ocaml


O'Leary, John W asked and Sylvain Le Gall answered:
> Hi all, 

> 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. 

I think you can try taking a look at two project: 

I think they implement something close to what you want (I mean "close", 
not "what you want" unfortunately). At least there is some code in it, 
that deal with xsd.
Richard Jones also replied:
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 

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:

findlib-1.2.4 (for ocaml-3.11)


Gerd Stolpmann announced:
I've just uploaded findlib-1.2.4. This is a bugfix release:

     * For ocaml-3.11 some camlp4 libs no longer include dynlink.
       Findlib has a fixed META definition.
     * Bigarray needs unix: This has been fixed in the META file, too.
     * Attempt to fix some "space path" issues for Win32. It is
       untested, however.

Get findlib from its homepage
( The GODI package
is already updated.

Using folding to read the cwn in vim 6+

Here is a quick trick to help you read this CWN if you are viewing it using vim (version 6 or greater).

:set foldmethod=expr
:set foldexpr=getline(v:lnum)=~'^=\\{78}$'?'<1':1

If you know of a better way, please let me know.

Old cwn

If you happen to miss a CWN, you can send me a message and I'll mail it to you, or go take a look at the archive or the RSS feed of the archives.

If you also wish to receive it every week by mail, you may subscribe online.

Alan Schmitt