The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Version: 0.1

$Id: Config.pm,v 1.1 2000/05/01 21:53:40 matt Exp $

SYNOPSIS

use XML::Config;

my $cfg = new XML::Config; my %CONF = $cfg->load_conf("path/to/file.xml");

DESCRIPTION

XML::Config is a simple shallow XML to hash converter. Given a configuration file in the form:

<xml_config> <foo>Bar</foo> <bar>Foo</bar> </xml_config>

... XML::Config->load_conf returns:

{ foo => 'bar', bar => 'foo' }

XML::Config will also try to load "path/to/file.xml.bak" in the case of a non-file not found parse error. if it does this, it will set the err_str to "WARN: Loaded backup configuration\n";

XML::Config doesn't care about your root tag, or any naming of tags.

METHODS

load_conf($conf_file_path) err_str()

AUTHOR

XML Global Technologies, Inc (Matthew MacKenzie)

COPYRIGHT

(c)2000 XML Global Technologies, Inc.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 76:

=pod directives shouldn't be over one line long! Ignoring all 4 lines of content