1 package Config::Any::XML;
8 Config::Any::XML - Load XML config files
12 Loads XML files. Example:
16 <component name="Controller::Foo">
28 return an array of valid extensions (C<xml>).
38 Attempts to load C<$file> as an XML file.
50 ForceArray => [ qw( component model view controller ) ],
53 return $class->_coerce($config);
57 # coerce the XML-parsed config into the correct format
61 for my $k (keys %$config) {
62 my $ref = $config->{$k};
63 my $name = ref $ref ? delete $ref->{name} : undef;
65 $out->{$k}->{$name} = $ref;
77 =item * Brian Cassidy E<lt>bricas@cpan.orgE<gt>
79 =item * Joel Bernstein E<lt>rataxis@cpan.orgE<gt>
83 =head1 COPYRIGHT AND LICENSE
85 Copyright 2006 by Brian Cassidy
87 This library is free software; you can redistribute it and/or modify
88 it under the same terms as Perl itself.
96 =item * L<Config::Any>
98 =item * L<XML::Simple>