=head1 NAME CCCP::ConfigXML - load XML config files or string =head1 SYNOPSIS Load XML file. Example: # foo_config.xml TestApp bar Stop! # bar_config.xml x1 x2 x3 x4 # baz_config.xml Go! In your code: use CCCP::ConfigXML; # or if you want singletone use CCCP::ConfigXML as => 'singletone'; # like XML::Bare my $cnf = CCCP::ConfigXML->new( file => ['foo_config.xml', 'bar_config.xml'] ); # now, you can read $cnf->{foo}->{name}->{value}; # TestApp $cnf->{foo}->{component}->{foo}->{value}; # bar $cnf->{foo}->{component}->{name}->{value}; # Controller::Foo $cnf->{foo}->{model}->{qux}->{value} # Stop! $cnf->add_file(baz_config.xml); $cnf->{foo}->{model}->{qux}->{value} # Go! =head1 DESCRIPTION Simple and usefull wrapper on L and L. =head1 METHODS =head2 new(file => [...list xml-files...], text => [...list xml-string...], @param_parse) Constructor. All arguments are optional. @param_parse - another parametrs for L =head2 add_file($file[, @param_parse]) Extend instance from $file. =head2 add_text($xml_str[, @param_parse]) Extend instance from xml-string. =head1 PACKAGE VARIABLES =head2 $CCCP::ConfigXML::like_singletone By default 0. Set true when use CCCP::ConfigXML as => 'singletone'; # or use CCCP::ConfigXML; CCCP::ConfigXML->import(as => 'singletone'); # or :) $CCCP::ConfigXML::like_singletone = 1; When value is true, then C returns a singleton if this is possible. =head1 AUTHOR mr.Rico =cut