Lire::Config::SpecParser3pm
Create configuration specification from xml files
Usage
use Lire::Config::SpecParser;my $parser = new Lire::Config::SpecParser;my $spec = $parser->parsefile( 'spec.xml' );$parser->merge_specifications_dir( '/etc/lire/config' );my $spec = $parser->configspec();
Overview
This is an Lire::XMLParser which can build Lire::Config::ConfigSpec objects from an XML file.
new()
Creates a new parser object.
configspec()
Returns the Lire::Config::ConfigSpec object parsed.
merge_specifications_dir( $dir )
Parses all the files ending in '.xml' in the $directory. The types defined in these files will be merged to the ConfigSpec object of this parser.
merge_specification_dir( $file )
Parses the $file XML file and merges the types it defines in the ConfigSpec defined by this parser.
Version
$Id: SpecParser.pm,v 1.44 2006/07/23 13:16:30 vanbaal Exp $
Releases
6 releases since Debian 3.1 (Sarge); the text changed 5 times.