Thanks!
Jean
_______________________________________________
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
On Sun, 23 Nov 2008 10:13:27 -0700, "Jean Krivine" <jean.k...@gmail.com>
wrote:
> Just a quick question, I would like to open and access easily an xml
> file within my ocaml program. Does someone have a small library that
> would help me doing that? All the things I found for now are
> libraries that help me construct xml and check for consistency which
> is not what I want.
If the xml you intend to parse is not too broken (like html for instance),
you can try to use xml-light, whose APIis very simple.
The link:
http://tech.motion-twin.com/xmllight.html
Romain
---
Adrien Nader
Indeed. If you find yourself routinely having to deal with XML,
and if you need more advanced features such as validating very
complex DTDs, than learning PXP is well worth it (Xml-light
will choke on all but the simplest DTDs).
If you are doing heavy manipulation of XML and wished for a
more "native" support in the language, then take a look at
Cduce/Ocamlduce.
Finally, if you just need to parse a simple XML file and this
is a one-off event, then Xml-light is indeed the simplest option.
Cheers,
Dario Teixeira
http://erratique.ch/software/xmlm
It is simpler than pxp and more complete/correct than xml-light.
About the current question (XML), you can find there the names of a few
other tools.
HTH,
Jean-Baptiste Rouquier