issaq has asked for the wisdom of the Perl Monks concerning the following question:
The above code is working fine for the XML file whose format is like:-my $config = XMLin("/developer/imoham5/${lctblnm}_colnames.config", Fo +rceArray => 1, keyattr => [] ); my @fieldlist = eval{ @{$config->{columnname}} };
Now my XML format has changed it to :-<table> <columnname>DATE_CREATED_ODS</columnname> <columnname>DATE_MODIFIED_ODS</columnname> </table>
I will pass the table name as input(say as salary) and the code has tp fetch all the details related to salary table<config> <table name="emp"> <columnname>DATE extract</columnname> <columnname>DATE_deleted</columnname> </table> <table name="salary"> <columnname>DATE1</columnname> <columnname>DATE2</columnname> </table> </config>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Xml File Reading from PERL
by kielstirling (Scribe) on Feb 15, 2012 at 09:11 UTC | |
by issaq (Initiate) on Feb 15, 2012 at 15:28 UTC | |
by kielstirling (Scribe) on Feb 16, 2012 at 00:20 UTC | |
by issaq (Initiate) on Feb 27, 2012 at 09:01 UTC |