Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: XML::Twig parse html trouble

by remiah (Hermit)
on Feb 20, 2014 at 20:36 UTC ( #1075645=note: print w/ replies, xml ) Need Help??


in reply to Re: XML::Twig parse html trouble
in thread XML::Twig parse html trouble

Thanks for reply, roboticus!

I forgot to report module version and error message.

>perl twigtest1.pl

not well-formed (invalid token) at line 2, column 8, byte 34 at C:/stra
rl/vendor/lib/XML/Parser.pm line 187.
 at twigtest1.pl line 6.

>perl -MXML::Twig -e "print $XML::Twig::VERSION;"
3.44
>perl -MHTML::TreeBuilder -e "print $HTML::TreeBuilder::VERSION;"
5.03
I got same error with your test data.
This is very strange for me, cause I used XML::Twig as HTML parser for several times, and I got no such error like this. I can't think that there was no "character entity references" at that time...

I would like to try available older version of modules.
regards.


Comment on Re^2: XML::Twig parse html trouble

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-27 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls