NAME
Kwid::DOM - Represent a Kwid document, DOM-style
SYNOPSIS
$kwoc = new Kwid::DOM();
my $body = $kwoc->root();
my @next = $body->daughters();
my $node = $kwoc->klink("S09#//para/"); # KLINK lookup
DESCRIPTION
This document is written in a new dialect of English, called Kwinglish.
A Kwid::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").
CREATING A Kwid::DOM TREE
Kwid::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 Kwid::Emitter, such as another Kwid::DOM, a Kwid::Preprocessor, or a Kwid::Parser.