NAME
Apache::Wyrd::Interfaces::XMLer - Convenience interface for XML::Simple
SYNOPSIS
use base qw(Apache::Wyrd::Interfaces::XMLer Apache::Wyrd);
return $self->_put_data('/var/list.xml',
$data,
{
noattr => 1,
keyattr => ['name'],
rootname=>'list',
suppressempty => 1
}
);
DESCRIPTION
Convenience wrapper for XML::Simple. Files are stored under the document root. Exceptions are caught by eval().
METHODS
(format: (returns) name (arguments after self))
- (scalar)
_get_data
(scalar, hashref) -
Open the XML file and read it in as a hashref. The first argument should be the document-root-relative filename, the second is the hashref used to initialize the XML::Simple object.
- (scalar)
_put_data
(void) -
Save a hashref as an XML file. Similar to _get_data.
BUGS/CAVEATS
This Inteface is scheduled for depreciation. Use at your own risk.
AUTHOR
Barry King <wyrd@nospam.wyrdwright.com>
SEE ALSO
LICENSE
Copyright 2002-2004 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd
.