|
NAMEConfig::Setting::XMLParser - parse XML settings file. SYNOPSIS use Config::Setting::XMLParser;
my $ini = Config::Setting::XMLParser->new(Filename => $xmlfile);
foreach my $s ($ini->sections()) {
print "[$s]\n";
foreach my $k ($ini->keylist($s)) {
print $k, "=", $ini->get($s, $k), "\n";
}
print "\n";
}
DESCRIPTIONThis class provides access to settings stored in an XML File. The XML File is expected to have the following structure: <settings>
<section name="SECTION">
<item name="KEY">VALUE</item>
</section>
</settings>
Multiple <section>s and <item>s may be present. Any leading and trailing whitespace within an <item> tag will be stripped. METHODS
SEE ALSOperl(1), Config::Setting::IniParser, XML::Parser. AUTHORDominic Mitchell, <cpan (at) happygiraffe.net>.
|