---
name: "Config::Any::XML"
section: "3pm"
platform: "linux"
package: "libconfig-any-perl"
version: "0.33-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Config::Any::XML"
---

# Config::Any::XML(3pm)

Load XML config files

## NAME

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

## 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.

## CAVEATS

### Strict Mode

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.

## AUTHORS

Brian Cassidy \<bricas@cpan.org\>

Joel Bernstein \<rataxis@cpan.org\>

## COPYRIGHT AND LICENSE

Copyright 2006-2016 by Brian Cassidy

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

- •

  Catalyst

- •

  Config::Any

- •

  XML::Simple
