Lire::Config::SpecParser(3pm)

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.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Authors

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

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.