good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
XML::LibXML complainsby Skeeve (Parson) |
on Jun 06, 2014 at 13:16 UTC ( [id://1089023]=perlquestion: print w/replies, xml ) | Need Help?? |
Skeeve has asked for the wisdom of the Perl Monks concerning the following question: Previously I had used (long, long time ago) XML::Twig for parsing XML. Or XML::Simple. Now I read that XML::Simple shouldn't be used in new code and so I wanted to try the named alternative XML::LibXML. But I already failed with the simplest code:
When I leave out the DOCTYPE, it seems to parse, but as soon as I have
my script stops with:
I wouldn't want to remove the doctype, so I'm wondering what could be wrong here. And is there a way to make the parser NOT go out and retrieve the DTD? s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{% +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
Back to
Seekers of Perl Wisdom
|
|