Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] XML data binder for Ocaml

68 views
Skip to first unread message

O'Leary, John W

unread,
Feb 13, 2009, 6:26:34 PM2/13/09
to caml...@yquem.inria.fr
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.

Cheers,
--John

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Sylvain Le Gall

unread,
Feb 14, 2009, 5:41:18 AM2/14/09
to caml...@inria.fr
On 13-02-2009, O'Leary, John W <john.w...@intel.com> wrote:
> 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:
http://www.galaxquery.org/
http://www.cduce.org/ocaml

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.

Regards,
Sylvain Le Gall

Richard Jones

unread,
Feb 15, 2009, 4:56:22 PM2/15/09
to O'Leary, John W, caml...@yquem.inria.fr
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

0 new messages