I have found several libraries for XML Parser in OCaml, such as PXP or XML-Light. Anyone knows such a thing that can be used easily in Windows? I found that in XML-Light, they have several .ml and .mli files, I try to copy it to the lib folder of my ocaml, but it d开发者_StackOverflow中文版oesn't work. Any advice how to do this correctly?
Thank you a bunch.
NB: I don't use cygwin either. I use a MSVC version of OCaml.
I've used xmlm for xml parsing. For simplest installation scenario you can download its distribution and copy src\xmlm.ml into your project directory.
Alternatively, you may compile it using:
ocamlopt -c xmlm.mli
ocamlopt -c xmlm.ml
and put the resulting files into %OCAMLLIB%\xmlm directory. Then you can compile your project like this:
ocamlopt -I +xmlm xmlm.cmx foo.ml -o bar
加载中,请稍侯......
精彩评论