Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: HTML::TreeBuilder::XPath not loading the complete $page

by tangent (Priest)
on Mar 19, 2013 at 21:00 UTC ( #1024387=note: print w/replies, xml ) Need Help??

in reply to Re^2: HTML::TreeBuilder::XPath not loading the complete $page
in thread HTML::TreeBuilder::XPath not loading the complete $page

Are you sure there isn't something else going on? When I use your sample content it still works:
my $content = q| <html> <head> </head> <body> <DIV>Div number 12</DIV> <HTML> <HEAD> </HEAD> <BODY> <p>You have an error blah blah blah</p> </BODY> </HTML> <DIV>Div number 13</DIV> </body> </html> |; my $tree = HTML::TreeBuilder::XPath->new; $tree->parse_content( $content ); my @divs = $tree->findnodes( '/html/body/div' ); for my $div (@divs) { print $div->as_HTML . "\n"; }
<div>Div number 12</div> <div>Div number 13</div>

Replies are listed 'Best First'.
Re^4: HTML::TreeBuilder::XPath not loading the complete $page
by Lord Gartlar (Initiate) on Mar 19, 2013 at 21:26 UTC

    There are some errors displayed there inside the new HTML...

    As mentioned, I tried deleting them with a mere while and it finally worked...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024387]
Eily thought about Neko Case first, something might be wrong with my brain's wiring
[virtualsue]: I recommended dbic-migration even though I am having trouble with it this week. It might be my fault.
[ambrus]: wow! I haven't seen you here for a long time, virtualsue
virtualsue waves back
[Eily]: it would have been 2 years in 2 weeks actually. And welcome back virtualsue :)
[Corion]: I think I saw virtualsue more recently in person than online :-D
[virtualsue]: It's true that there was a bigger gap between the 2 yr old post and the one before it
[ambrus]: yes, I probably just didn't see you two years ago, because I'm not in perlmonks much
[virtualsue]: Nor am I :-)
[talexb]: virtualsue Heh .. long time no see! :)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2017-09-26 13:50 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (295 votes). Check out past polls.