in reply to Re^4: XML::LibXML Parser Error
in thread XML::LibXML Parser Error
So, check the content as well:
my $xml = $response->content; if ($xml =~ /^</) { print "Looks like it could be xml/html\n"; # Parse xml here } else { die "Bad content:\n$xml\n"; }
In fact, save the content on each invocation so you can see why it isn't parsing or what the difference is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: XML::LibXML Parser Error
by omegaweaponZ (Beadle) on Mar 07, 2014 at 18:12 UTC | |
by Anonymous Monk on Mar 08, 2014 at 08:23 UTC |