I tried this out but i got an error again (could not find ParserDetails.ini in C:/Perl/site/lib/XML/SAX GLOB(0xf9def4))
#!/usr/bin/perl use XML::Simple; use Data::Dumper; $xml = new XML::Simple; $data = $xml->XMLin("news2Obama.xml"); open $fh_o, '>', 'new_output.txt' or die "can't open file: $!"; $_ = Dumper ($data); print $fh_o; close $fh_o or die "can't close file:$!";
In reply to Re^2: perl xml parsing
by poper12
in thread perl xml parsing
by poper12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |