NAME

HTML::Doctype - HTML/XHTML/XML Doctype Operations

SYNOPSIS

use HTML::Doctype;
...

DESCRIPTION

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.

AUTHOR / COPYRIGHT / LICENSE

Copyright (c) 2004-2008 Bjoern Hoehrmann <bjoern@hoehrmann.de>.
This module is licensed under the same terms as Perl itself.