Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: How to parse HTML5?

by poj (Abbot)
on Mar 08, 2016 at 13:28 UTC ( [id://1157074]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to parse HTML5?
in thread How to parse HTML5?

If you just want errors then maybe use tidy directly

#!perl use strict; my $text = join '|',qw(DOCTYPE html meta header); my $re = qr/$text/; my $filename = 'd:/perl/test.xhtml'; my $tidy = '..../tidy/bin/tidy.exe'; # change to your path my @msg = qx"$tidy -eq -utf8 $filename 2>&1"; for (@msg){ print $_ unless /$re/; } # line 10 column 1 - Warning: missing </section>
poj

Replies are listed 'Best First'.
Re^6: How to parse HTML5?
by NRan (Novice) on Mar 10, 2016 at 11:44 UTC

    Thanks for this one

    But when i try then i got some error.

    Error massage is:-

    The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem.

    Then, I download "https://www.microsoft.com/en-us/download/details.aspx?id=48145" and install in my window7. But still same problem. Do you have any idea? Thanks
    Nikhil Ranjan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found