Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 examining the Monastery: (4)
As of 2015-07-04 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls