The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TEI::Lite::Document - TEI::Lite::Document Object

SYNOPSIS

 my $document = TEI::Lite::Document->new( 'Corpus'    => 0,
                                          'Composite' => 0 );

 my $header = $document->addHeader();

DESCRIPTION

TEI::Lite::Document is a object oriented interface to the 'global' structure of a TEI document.

METHODS

addBackMatter

Adds a back matter component to a <text> element that is currently "active".

addCompositeBackMatter

Adds a back matter component to a composite document.

addCompositeFrontMatter

Adds a front matter component to a composite document.

addDocument

Adds another document to a corpus document.

addFrontMatter

Adds a front matter component to a <text> element that is currently "active".

addHeader

Creates a default header in a TEI document.

addText

Adds another <text> to a composite document.

getActiveDocument

Returns the active document to the caller.

getActiveText

Returns the active text to the caller.

getBackMatter

Returns the back matter of the active document to the caller.

getBody

Returns the <body> element of the active document to the caller.

getCompositeBackMatter

Returns the back matter of the composite document to the caller.

getCompositeFrontMatter

Returns the front matter of the composite document to the caller.

getDocument

Returns the active document to the caller.

getDocuments

Returns an array of TEI Lite documents contained within a corpus document.

getFrontMatter

Returns the front matter of the active document to the caller.

getHeader

Returns the header node of a document.

getText

Returns the active <text> node of a document.

getTexts

Returns an array of <text> nodes of a document.

setActiveDocument

Gets/Sets the active document in a TEI corpus document.

setActiveText

Gets/Sets the text node that is considered active in a document.

AUTHOR

D. Hageman <dhageman@dracken.com>

SEE ALSO

TEI::Lite, TEI::Lite::Element, TEI::Lite::Header, TEI::Lite::Utility, XML::LibXML, XML::LibXML::Node, XML::LibXML::Element

COPYRIGHT AND LICENSE

Copyright (c) 2002-2005 D. Hageman (Dracken Technologies). All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.