Björn Höhrmann > HTML-Doctype > HTML::Doctype

Download:
HTML-Doctype-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

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.
syntax highlighting: