in reply to Re^4: perl xml parsing
in thread perl xml parsing
"no luck.. Is there anything else i can change inside the code to get the xml data stored in the txt?"
What happened when you tried? You didn't get the warning you mention here. See How do I post a question effectively?.
#!/usr/bin/perl use strict; use warnings; use XML::Simple; use Data::Dumper; my $xml = new XML::Simple; my $data = $xml->XMLin("news2Obama.xml"); open (FH , '>', 'new_output.txt') or die "can't open file: $!"; my $fh_o = Dumper ($data); print FH $fh_o; close FH or die "can't close file:$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: perl xml parsing
by poper12 (Initiate) on May 25, 2012 at 15:12 UTC | |
by marto (Cardinal) on May 25, 2012 at 15:15 UTC | |
by poper12 (Initiate) on May 25, 2012 at 15:19 UTC | |
by marto (Cardinal) on May 25, 2012 at 15:22 UTC | |
by poper12 (Initiate) on May 25, 2012 at 15:50 UTC |