NAME

XML::Template::Element::File::Load - XML::Template loader module that loads documents from files.

SYNOPSIS

This module implements an XML::Template document loader that loads documents from files.

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::File::Load->new (%config)
  || die XML::Template::Element::File::Load->error;

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

IncludePath

This is a reference to an array containing paths where XML::Template documents will be searched for when loading.

PRIVATE METHODS

_init

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

load

This method loads an XML document from a file located in one of the directories listed in the IncludePath constructor parameter. It 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.