Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

config::any::xml(3) [osx man page]

Config::Any::XML(3)					User Contributed Perl Documentation				       Config::Any::XML(3)

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-2011 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
o Catalyst o Config::Any o XML::Simple perl v5.16.2 2011-07-04 Config::Any::XML(3)

Check Out this Related Man Page

Config::Any::XML(3)					User Contributed Perl Documentation				       Config::Any::XML(3)

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-2013 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
o Catalyst o Config::Any o XML::Simple perl v5.18.2 2013-09-10 Config::Any::XML(3)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grep XML tags

I want to search the below XML pattern in the XML files, but the XML files would be in a .GZ files, <PRODID>LCTO84876</PRODID> <PARTNUMBER>8872AC1</PARTNUMBER> <WWPRODID>MODEL84876</WWPRODID> <COUNTRY>US</COUNTRY> <LANGUAGE>1</LANGUAGE> What's the command/script to search it ? :confused: (2 Replies)
Discussion started by: saravvij
2 Replies

2. UNIX for Dummies Questions & Answers

Problems with grep and XML

I'm trying to use grep on XML files. The same grep expressions work on plaint text files but not on XML files (which of course are plain text files). Actually, these expressions work on XML files saved in DreamWeaver, but not when the same files are saved in XML Spy. I want grep to treat these... (4 Replies)
Discussion started by: pauljohn
4 Replies

3. Shell Programming and Scripting

Perl - problem with CPAN module XML::Simple

Hi All, I am trying to run the following program #!/usr/bin/perl # use module use XML::Simple; use Data::Dumper; # create object $xml = new XML::Simple; # read XML file $data = $xml->XMLin("dump.xml"); # print output print Dumper($dump); At first i had the error mesage saying... (5 Replies)
Discussion started by: userscript
5 Replies

4. Shell Programming and Scripting

Simple XML file comparison and merging

Okay, first of all, thanks to everyone who's helped me out before... I appreciate the opportunity to learn. I have two iTunes XML files, and I simply want to compare the contents, then merge. Theoretically, this will allow me to merge two libraries, keeping playlists intact (depending on iTunes'... (4 Replies)
Discussion started by: karlp
4 Replies

5. Shell Programming and Scripting

How to get input xml file as XMLout. output.

Hi , I am trying to get an reference of a XML formatted data using XML::Simple::XMLin and again trying to retrive the XML data as it was before using XML::Simple::XMLout. But finding a deviation in the format can any pls help me out. Input file sr.xml <?xml version="1.0"... (0 Replies)
Discussion started by: srkelect
0 Replies

6. Shell Programming and Scripting

NEED HELP

Hi, I have a folder which contains multiple config.xml files and one input file, Please see the below format. Config Files format looks like :- <application name="SAMPLE-ARCHIVE"> <NVPairs name="Global Variables"> <NameValuePair> <name>MIG_Host</name> ... (3 Replies)
Discussion started by: haiksuresh
3 Replies

7. Shell Programming and Scripting

how to write a own config file in XML

hi all, please give me some idea to write a config file in xml for username and password data. (1 Reply)
Discussion started by: shubhig15
1 Replies

8. Shell Programming and Scripting

XML::Simple Help!

I can loop through each roomtype but if a roomtype has more that one mealtype I get this error: Not a HASH reference The ForceArray option is enabled. Please Help! This is the dump from the XML that is begin returned to me: --------------------------------------------------------------- ... (2 Replies)
Discussion started by: novera
2 Replies

9. Programming

Syntax error in perl program.

Hi, i am running this code but i am getting syntax error #!/usr/bin/perl use warnings; use strict; use XML::LibXML; use XML::LibXML::Reader; use Data::Dumper; my $file; open( $file, 'DTC_Specification_transformed.xml'); my $reader = XML::LibXML::Reader->new( IO => $file ) or die... (1 Reply)
Discussion started by: veerubiji
1 Replies