I am trying to make this code work but with no luck. It does the xml parsing but it doesn't store the outcome in a new txt file. I could really use some help. Thank you!
#!/usr/bin/perl use XML::Simple; use Data::Dumper; $xml = new XML::Simple; $data = $xml->XMLin("news2Obama.txt"); open $fh_o, '>', 'new_output.xml' or die "can't open file: $!"; $fh_o = Dumper ($data); print $fh_o; close $fh_o or die "can't close file:$!";
In reply to perl xml parsing by poper12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |