Lire::Config::Parser(3) Creates a Lire::Config::ConfigFile object from XML

SYNOPSIS


use Lire::Config;
use Lire::Config::Parser;
my $parser = new Lire::Config::Parser( 'spec' => Lire::Config->config_spec());
my $conf = $parser->parsefile( 'config.xml' );

DESCRIPTION

Rather straightforward XML parser that follows the configuration specification to parse an XML file.

new( 'spec' => $spec )

Creates a parser object which will parse configuration file which validates against the Lire::Config::ConfigSpec specification $spec.

load_config_file( $file )

Parses the $file XML file and returns a Lire::Config::ConfigFile object representing it.

AUTHORS

  Wessel Dankers <[email protected]>
  Francis J. Lacoste <[email protected]>

VERSION

$Id: Parser.pm,v 1.49 2006/07/23 13:16:30 vanbaal Exp $

COPYRIGHT

Copyright (C) 2002, 2004 Stichting LogReport Foundation [email protected]

This file is part of Lire.

Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.