
TEI::Lite::Element

my $tei_p = tei_p();
tie( my @p, 'TEI::Lite::Element', $tei_p );
push( @p, tei_head( "Example Head Element" ),
"Regular body of the paragraph ..." );
untie( @p );
print $tei_p->toString( 2 ) . "\n";

TEI::Lite::Element is wrapper for the document object model implemented using a subroutine named after the TEI element it creates with a prefix of tei_ attached. Each subroutine returns a DOM element that can be included in a DOM tree.

Each function returns an object based on an instance of a XML::LibXML::Element. All methods associated with XML::LibXML::Element objects will work with the objects returned by the functions listed below.

Until I have time to document each individual element, please see the TEILite specification and the example programs included in the distribution.