Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikaello/ocaml-libxml2
ocaml-libxml2 is a library for calling libxml2 functions from OCaml
https://github.com/mikaello/ocaml-libxml2
bindings libxml libxml2 ocaml
Last synced: 23 days ago
JSON representation
ocaml-libxml2 is a library for calling libxml2 functions from OCaml
- Host: GitHub
- URL: https://github.com/mikaello/ocaml-libxml2
- Owner: mikaello
- License: gpl-3.0
- Created: 2020-03-04T05:21:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T06:03:01.000Z (almost 5 years ago)
- Last Synced: 2024-10-04T16:22:07.742Z (3 months ago)
- Topics: bindings, libxml, libxml2, ocaml
- Language: Shell
- Size: 104 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# OCaml Bindings to libxml2.
NB: This is a mirror of the project of _kyas_ at the University of Oslo:
https://folk.uio.no/kyas/creoltools/index.htmlThis packages aims at providing bindings to [libxml](http://xmlsoft.org/)
version 2.6 and later. One aim of these bindings is to be as source-code
compatible with F# as possible.To compile and link against the bindings, you cam use, e.g.,
```shell
ocamlfind ocamlc -package libxml2 MyProgram.ml
```## Build Requirements
In order to compile this package, you need a ocaml compiler, e.g., from
http://caml.inria.fr. Version 3.06 and later are known to work. Many Linux
distributions already provide ocaml, a.o. Fedora, Ubuntu, and Debian.You need findlib for ocaml, available from http://www.ocaml-programming.de.
You need libxml2, version 2.6.16 or later, including its development files.
Almost all Linux distributions include this library, but you can obtain it from
http://xmlsoft.org.You need libxslt, version 1.1.11 or later, including its development files.
Almost all Linux distributions include this library, but you can obtain it from
http://xmlsoft.org.## Build Instructions
See the file [INSTALL](./INSTALL.md) for more detailed instructions. Usually,
```shell
./configure make all make install
```will install the bindings. It will create a package libxml2.
## Known Issues
Ubuntu and Debian do not ship libxslt.m4 with its libxslt-dev package.
Therefore, rebuilding from the repository will fail with a complaint about the
macro `AM_PATH_XSLT` being undefined. The correct remedy would be to make Ubuntu
correct its package. As a workaround, however, you can try to download the
libxslt source code, extract it, and copy the missing file to
`/usr/share/aclocal`.The ABI of different versions of OCaml are not compatible. If you upgrade your
OCaml distribution, remember to upgrade or recompile and reinstall this library.Similarily, upgrades of Linux distributions can overwrite important
configuration information of ocamlfind, which may make a reinstall necessary.