HTML::Doctype - HTML/XHTML/XML Doctype Operations
use HTML::Doctype; ...
Experimental module to perform some document type declaration related operations. It currently depends on SGML::Parser::OpenSP for which it provides a handler HTML::Doctype::Detector which can be used to detect document type declarations.
my $p = SGML::Parser::OpenSP->new; my $h = HTML::Doctype::Detector->new($p); $p->handler($h) # ... $p->parse_string("..."); if ($h->is_xhtml) { # ... }
...
Future versions may offer additional functionality.
Copyright (c) 2004-2008 Bjoern Hoehrmann <bjoern@hoehrmann.de>. This module is licensed under the same terms as Perl itself.
To install HTML::Doctype, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Doctype
CPAN shell
perl -MCPAN -e shell install HTML::Doctype
For more information on module installation, please visit the detailed CPAN module installation guide.