|
NAMEXML::LibXML::Cache - Document cache for XML::LibXMLVERSIONversion 0.14SYNOPSISmy $cache = XML::LibXML::Cache->new; my $doc = $cache->parse_file('file.xml'); my $doc = $cache->parse_html_file('file.html', \%opts); DESCRIPTIONXML::LibXML::Cache is a cache for XML::LibXML documents loaded from files. It is useful to speed up loading of XML files in persistent web applications.This module caches the document object after the first load and returns the cached version on subsequent loads. Documents are reloaded whenever the document file changes. Changes to other files referenced during parsing also cause a reload. This includes external DTDs, external entities or XIncludes. METHODSnewmy $cache = XML::LibXML::Cache->new(%opts); my $cache = XML::LibXML::Cache->new(\%opts); Creates a new cache. Valid options are:
parse_filemy $doc = $cache->parse_file($filename); Works like "parse_file" in XML::LibXML::Parser. parse_html_filemy $doc = $cache->parse_html_file($filename, \%opts); Works like "parse_html_file" in XML::LibXML::Parser. AUTHORNick Wellnhofer <wellnhofer@aevum.de>COPYRIGHT AND LICENSEThis software is copyright (c) 2020 by Nick Wellnhofer.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |