NAME

XML::Template::Element::Block::Load - XML::Template loader module that loads documents from a database table.

SYNOPSIS

This module implements an XML::Template document loader that loads documents from a database table.

CONSTRUCTOR

A constructor method new is provided by XML::Template::Base. A list of named configuration parameters may be passed to the constructor. The constructor returns a reference to a new block loader object or under if an error occurred. If undef is returned, you can use the method error to retrieve the error. For instance:

my $parser = XML::Template::Element::Block::Load->new (%config)
  || die XML::Template::Element::Block::Load->error;

The following named configuration parameters may be passed to the constructor:

StripPattern

A regular expression that matches a substring to remove from the document name.

PRIVATE METHODS

_init

This method is the internal initialization function called from XML::Template::Base when a new block loader object is created.

load

my $document = $loader->load ($blockname);

This method loads an XML document from a database table and returns a new XML::Template::Document object.

AUTHOR

Jonathan Waxman <jowaxman@bbl.med.upenn.edu>

COPYRIGHT

Copyright (c) 2002-2003 Jonathan A. Waxman All rights reserved.

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