|
Oak::Filer::XML - Saves/retrieves data to/from a XML file |
Oak::Filer::XML - Saves/retrieves data to/from a XML file
This module saves and retrieves properties using a XML file. the file has the format:
<!ELEMENT main (prop+)> <!ATTLIST prop name CDATA #REQUIRED value CDATA #REQUIRED>
An example of the XML file is:
<main>
<prop name="filename" value="/tmp/example123"/>
</main>
FILENAME => filename of the XML file FH => filehandle of the XML file
You must pass one (and just one) of these parameters. In the case you miss this will be throwed an Oak::Error::ParamsMissing error.
load(NAME,NAME,...)
# To create the default filer require Oak::Filer::XML; my $filer = new Oak::Filer::XML(type => 'file', FILENAME => 'config.xml'); $filer->store(NAME=>VALUE); my %props = $filer->load(NAME);
Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Oak::Filer::XML - Saves/retrieves data to/from a XML file |