drodinthe559 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Daveforeach my $xml_file (@dipfile) { my $ref = XML::Simple::XMLin($xml_file, SuppressEmpty => ''); my ($default_name) = $ref->{defaultName}; my ($doc_type) = '1'; my ($default_description) = $ref->{defaultDescription}; my ($report_time) = $ref->{reportExecutionTime}; my ($reportSearchPath) = $ref->{reportSearchPath}; #Example of data in XML field /content/folder[@name='Opertations'] +/report[@name='Daily Deposit Correction'] my $temp = substr($reportSearchPath,22,11); if (substr($reportSearchPath,24,11) eq 'Operations') { $doc_type = 2; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parse XML Field
by toolic (Bishop) on May 26, 2009 at 23:15 UTC | |
|
Re: Parse XML Field
by ww (Archbishop) on May 26, 2009 at 23:43 UTC | |
by drodinthe559 (Monk) on May 27, 2009 at 15:27 UTC |