logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Config::Any::XML - Load XML config files

Authors

       Brian Cassidy <bricas@cpan.org>

       Joel Bernstein <rataxis@cpan.org>

Caveats

StrictMode
       If, by some chance, XML::Simple has already been loaded with the strict flag turned on, then you will
       likely get errors as warnings will become fatal exceptions and certain arguments to XMLin() will no
       longer be optional.

       See XML::Simple's strict mode documentation for more information.

Description

       Loads XML files. Example:

           <config>
               <name>TestApp</name>
               <component name="Controller::Foo">
                   <foo>bar</foo>
               </component>
               <model name="Baz">
                   <qux>xyzzy</qux>
               </model>
           </config>

Methods

extensions()
       return an array of valid extensions ("xml").

   load($file)
       Attempts to load $file as an XML file.

   requires_all_of()
       Specifies that this module requires XML::Simple and XML::NamespaceSupport in order to work.

Name

       Config::Any::XML - Load XML config files

See Also

       •   Catalyst

       •   Config::Any

       •   XML::Simple

perl v5.36.0                                       2023-06-26                              Config::Any::XML(3pm)

See Also