| Doc-Perlish documentation | view source | Contained in the Doc-Perlish distribution. |
Doc::Perlish::DOM - Represent a Perldoc document, DOM-style
$kwoc = new Doc::Perlish::DOM();
my $body = $kwoc->root();
my @next = $body->daughters();
my $node = $kwoc->klink("S09#//para/"); # KLINK lookup
A Doc::Perlish::DOM is a directed acyclic graph, which is a Computer Scientist's way of saying "tree" (cue: the Fast Show "aliens that say 'tree' skit").
Doc::Perlish::DOM trees are seldom created using the Tree::DAG_Node
interface.
Normally, they will be constructed as a series of events fired in by a Doc::Perlish::Sender, such as another Perldoc::DOM, a Doc::Perlish::Preprocessor, or a Perldoc::Parser.
Doc::Perlish::DOM supports the Perldoc::Sender API.
>Clear the state of the Doc::Perlish::Sender, useful for guaranteeing
that you don't get a partial tree out of your DOM object.
Supports the Doc::Perlish::Receiver API.
Sub-classes of Doc::Perlish::DOM may wish to override these methods,
which are called when creating nodes during DOM tree construction.
| Doc-Perlish documentation | view source | Contained in the Doc-Perlish distribution. |