NAME
XML::Generator::Pdb - Generate SAX events from a Palm PDB
SYNOPSIS
use XML::Handler::YAWriter;
use XML::Generator::Pdb;
use IO::File;
my $writer = XML::Handler::YAWriter->new(
Output => IO::File->new( ">-" ),
Pretty => {
PrettyWhiteIndent => 1,
PrettyWhiteNewline => 1
}
);
my $driver = XML::Generator::Pdb->new(
Handler => $writer,
PDBFile => $file,
Layout => [
'int',
'date',
'time',
'text',
'text',
'text'
]
);
$driver->parse;
DESCRIPTION
This module generates SAX1 events from a palm PDB database. In combination with an XML writer, this module can be used to convert a PDB to an XML description. If you plug this generator in a SAX pipeline (e.g. AxKit) you can manipulate a PDB just as you could do with any other XML source.
SYNTAX
More information about the syntax of the generated XML - or SAX events - can be found in XML::Handler::Pdb.
The next datatypes are supported:
You specify the layout of the database records in the constructor of XML::Generator::Pdb, using the Layout
anonymous array.
BUGS
Please use http://rt.cpan.org/ for reporting bugs.
AUTHOR
Johan Van den Brande <johan@vandenbrande.com>
LICENSE
This is free software, distributed underthe same terms as Perl itself.