in reply to Caching Entities with XML::LibXML

My installation of XML::LibXML does not behave as you describe and does in fact use a catalog to refer to a local copy of the DTD. The POD for XML::LibXML::Parser discusses a load_catalog() method, but I'm not calling it - catalogs seem to get used automatically if they're installed in the default place.

In my case I'm using Ubuntu Linux with the packaged version of XML::LibXML ('libxml-libxml-perl') from the Ubuntu repositories. I also have the 'w3c-dtd-xhtml' package installed. My system has a /etc/xml/catalog file which I've never edited - the package installers seem to look after that.

Replies are listed 'Best First'.
Re^2: Caching Entities with XML::LibXML
by ikegami (Patriarch) on Feb 25, 2010 at 05:01 UTC
    That's good news. Well, not so much for me. My home machine, the one on which the script runs, is a WinXP machine.

      You might find this page useful: http://xmlsoft.org/catalog.html. It looks like the /etc/xml/catalog path is a hardcoded default but you can override it with an environment variable.