The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::RDDL::Driver - SAX2 Driver for RDDL Directories

SYNOPSIS

  use XML::RDDL::Directory;
  use XML::RDDL::Driver;
  use MySAX2Handler;

  my $dir = XML::RDDL::Directory->new;
  # do various things to add to the directory...

  my $handler = MySAX2Handler->new;
  my $driver  = XML::RDDL::Driver->new(Handler => $handler);
  $driver->parse($dir);

DESCRIPTION

This module is a SAX2 driver that will take an RDDL Directory instance and generate the appropriate events to serialize it to RDDL.

Note that the rest of the document won't be present, and that if you don't use the start_document() event to create a container document and have more than one resource, the generated document won't be valid. This driver's output is meant to be embedded in something else.

METHODS

XML::RDDL->new(%options)

Creates a new XML::RDDL::Driver ready to fire off events. The options are the same as those passed to all SAX2 drivers.

XML::RDDL->parse($directory)

Takes a Directory object and generates the appropriate events.

AUTHOR

Robin Berjon, robin@knowscape.com

COPYRIGHT

Copyright (c) 2001-2002 Robin Berjon. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://www.rddl.org/, XML::RDDL