Yet another solution is Xmlm by Daniel Bünzli. http://erratique.ch/software/xmlm
This is probably the easiest and lightweight solution: Xmlm comes as a single module and its interface, and it's BSD so you can just copy/paste it into your project. Cheers, Matthieu ----- Message d'origine ---- > De : Sylvain Le Gall <sylv...@le-gall.net> > À : caml-l...@inria.fr > Envoyé le : Mardi, 17 Mars 2009, 13h53mn 30s > Objet : [Caml-list] Re: XML output > > 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 > > _______________________________________________ > 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 _______________________________________________ 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