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


TEI-Lite documentation  | view source Contained in the TEI-Lite distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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

DESCRIPTION

Top

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

METHODS

Top

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

Top

D. Hageman <dhageman@dracken.com>

SEE ALSO

Top

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

COPYRIGHT AND LICENSE

Top


TEI-Lite documentation  | view source Contained in the TEI-Lite distribution.