1 package Catalyst::Plugin::ConfigLoader::XML;
\r
8 Catalyst::Plugin::ConfigLoader::XML - Load XML config files
\r
12 Loads XML files. Example:
\r
15 <name>TestApp</name>
\r
16 <component name="Controller::Foo">
\r
26 =head2 extensions( )
\r
28 return an array of valid extensions (C<xml>).
\r
36 =head2 load( $file )
\r
38 Attempts to load C<$file> as an XML file.
\r
46 require XML::Simple;
\r
47 XML::Simple->import;
\r
48 my $config = XMLin( $file, ForceArray => [ qw( component model view controller ) ] );
\r
57 =item * Brian Cassidy E<lt>bricas@cpan.orgE<gt>
\r
61 =head1 COPYRIGHT AND LICENSE
\r
63 Copyright 2006 by Brian Cassidy
\r
65 This library is free software; you can redistribute it and/or modify
\r
66 it under the same terms as Perl itself.
\r
74 =item * L<Catalyst::Plugin::ConfigLoader>
\r
76 =item * L<XML::Simple>
\r