Tree::Persist::File::XML - a handler for Tree persistence
Please see Tree::Persist for how to use this module.
This module is a plugin for Tree::Persist to store a Tree to an XML file.
This class requires no additional parameters than are specified by its parent, Tree::Persist::File.
The XML used is very simple. Each element is called "node". The node contains two attributes - "class", which represents the Tree class to build this node for, and "value", which is the serialized value contained in the node (as retrieved by the value() method.) Parent-child relationships are represented by the parent containing the child.
value()
NOTE: This plugin will currently only handle values that are strings or have a stringification method.
Currently, the value is not XML-encoded.
Please see the relevant section of Tree::Persist.
Rob Kinyon <rob.kinyon@iinteractive.com>
Stevan Little <stevan.little@iinteractive.com>
Thanks to Infinity Interactive for generously donating our time.
Copyright 2004, 2005 by Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tree::Persist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tree::Persist
CPAN shell
perl -MCPAN -e shell install Tree::Persist
For more information on module installation, please visit the detailed CPAN module installation guide.