Name

CatalystX::Usul::File::Storage::XML - Read/write XML data storage model

Version

0.1.$Revision: 407 $

Synopsis

This is an abstract base class. See one of the subclasses for a concrete example

Description

Implements the basic storage methods for reading and writing XML files

Subroutines/Methods

delete

$bool = $self->delete( $element_obj );

Deletes the specified element object returning true if successful. Throws an error otherwise

insert

$bool = $self->insert( $element_obj );

Inserts the specified element object returning true if successful. Throws an error otherwise

load_files

$hash_ref = $self->load_files( @paths );

Loads each of the specified files merging the resultant hash ref which it returns. Paths are instances of CatalystX::Usul::File::IO

select

$hash_ref = $self->select;

Returns a hash ref containing all the elements of the type specified in the schema

update

$bool = $self->update( $element_obj );

Updates the specified element object returning true if successful. Throws an error otherwise

Diagnostics

None

Configuration and Environment

None

Dependencies

CatalystX::Usul
Hash::Merge
List::Util

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright

Copyright (c) 2008 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE