Parser(3pm) LogReport's Lire Documentation Parser(3pm)

Lire::Config::Parser - Creates a Lire::Config::ConfigFile object from XML

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

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

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

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

Lire::Config::ConfigFile(3pm), Lire::Config::SpecParser(3pm),
Lire::Config::ConfigSpec(3pm)

Wessel Dankers <wsl@logreport.org>
Francis J. Lacoste <flacoste@logreport.org>

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

Copyright (C) 2002, 2004 Stichting LogReport Foundation LogReport@LogReport.org

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.

2020-07-07 Lire 2.1.1