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.
Returns the (fast) string value of the original XML::API object. '""' is overloaded so you can also just print $cache.
Mark Lawrence <firstname.lastname@example.org<gt>
Copyright (C) 2008,2015,2016 Mark Lawrence <email@example.com>
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.