Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
problem using xml-light lib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <Alain.Frisch@i...>
Subject: Re: [Caml-list] problem using xml-light lib
Andrea Rendl wrote:
> Hi everyone,
> I am trying to use the xml-light library with ocaml but cannot load the
> according module Xml and XmlParser respectively, neither on command line
> nor in an .ml file:
> # let x = Xml.parse_file "test.xml";;
> Reference to undefined global `Xml'

In the toplevel, if xml-light is findlib-installed, you must do:

#use "topfind";;
#require "xml-light";;

-- Alain