XML::Generator::Pdb - Generate SAX events from a Palm PDB
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;
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.
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.
Layout
Please use http://rt.cpan.org/ for reporting bugs.
Johan Van den Brande <johan@vandenbrande.com>
This is free software, distributed underthe same terms as Perl itself.
To install XML::Generator::Pdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Generator::Pdb
CPAN shell
perl -MCPAN -e shell install XML::Generator::Pdb
For more information on module installation, please visit the detailed CPAN module installation guide.