GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XML::LibXML::Cache(3) User Contributed Perl Documentation XML::LibXML::Cache(3)

XML::LibXML::Cache - Document cache for XML::LibXML

version 0.14

    my $cache = XML::LibXML::Cache->new;

    my $doc = $cache->parse_file('file.xml');
    my $doc = $cache->parse_html_file('file.html', \%opts);

XML::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.

    my $cache = XML::LibXML::Cache->new(%opts);
    my $cache = XML::LibXML::Cache->new(\%opts);

Creates a new cache. Valid options are:

parser
The XML::LibXML parser object that should be used to load documents if you want to use certain parser options. If this option is missing a parser with default options will be used.

    my $doc = $cache->parse_file($filename);

Works like "parse_file" in XML::LibXML::Parser.

    my $doc = $cache->parse_html_file($filename, \%opts);

Works like "parse_html_file" in XML::LibXML::Parser.

Nick Wellnhofer <wellnhofer@aevum.de>

This 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.

2020-01-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.