XML::API::Cache - Cached version of an XML::API object
use XML::API::Cache; my $cache = XML::API::Cache->new($xml_api_object); # store and then retrieve $cache somewhere # later: use XML::API; my $x = XML::API->new(); $x->tag_open(); $x->_add($cache); $x->tag_close();
XML::API::Cache is a class for storing XML::API objects in a cache. XML::API objects are flattened, but their language attributes are kept, so that they can be efficiently stored and retrieved from somewhere but will still allow the caller to use them in the creation of XML.
Create a new XML::API::Cache object. The first and only argument must be an XML::API object.
Returns the values of the _langs() method from the original XML::API object. This is used by XML::API when _adding() the $cache to another XML::API object.
Returns the (fast) string value of the original XML::API object. '""' is overloaded so you can also just print $cache.
XML::API
Mark Lawrence <nomad@null.net<gt>
Copyright (C) 2008 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
To install XML::API::Element, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::API::Element
CPAN shell
perl -MCPAN -e shell install XML::API::Element
For more information on module installation, please visit the detailed CPAN module installation guide.