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.
In reply to Re^5: XML::LibXML Parser Error
by hippo
in thread XML::LibXML Parser Error
by omegaweaponZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |