omegaweaponZ has asked for the wisdom of the Perl Monks concerning the following question:
Now clearly, the document is fine since it works on occassion, but does anyone have any ideas to prevent this? My initial thoughts are somehow write the contents out locally then parse through again? Here is the basic parser code. Please note, the recover silent option does not work, I'm only adding this to showcase this. Omitting or including this has the same result:parser error : Document is empty parser error : Start tag expected, '<' not found
use XML::LibXML; my $parser = XML::LibXML->new(); $parser->recover_silently(2); my $dom = XML::LibXML->load_xml(location => $xmlurl);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::LibXML Issue
by runrig (Abbot) on Aug 16, 2013 at 16:29 UTC | |
by omegaweaponZ (Beadle) on Aug 16, 2013 at 20:09 UTC | |
by Anonymous Monk on Aug 17, 2013 at 11:32 UTC | |
by omegaweaponZ (Beadle) on Aug 17, 2013 at 17:09 UTC | |
by runrig (Abbot) on Aug 19, 2013 at 17:15 UTC | |
by Anonymous Monk on Aug 18, 2013 at 03:21 UTC |