DTA::CAB::Format::XmlVz - Datum parser|formatter: XML (Vz)
use DTA::CAB::Format::XmlVz;
##========================================================================
## Methods
$fmt = DTA::CAB::Format::XmlVz->new(%args);
##========================================================================
## Methods: Input: Generic API
$doc = $fmt->parseDocument();
##========================================================================
## Methods: Output: Local: Nodes
$xmlnod = $fmt->tokenNode($tok);
$xmlnod = $fmt->sentenceNode($sent);
$xmlnod = $fmt->documentNode($doc);
##========================================================================
## Methods: Output: Local: Utils
$bodynode = $fmt->xmlBodyNode();
$sentnod = $fmt->xmlSentenceNode();
##========================================================================
## Methods: Output: API
$fmt = $fmt->putToken($tok);
$fmt = $fmt->putSentence($sent);
$fmt = $fmt->putDocument($doc);
UNMAINTAINED
DTA::CAB::Format::XmlVz is a DTA::CAB::Format subclass for I/O of documents for use with the (likewise unmaintained) DTA::CAB::Analyzer::DocClassify document classification analyzer.
$fmt = CLASS_OR_OBJ->new(%args);
object structure: HASH ref
{
##-- input
xdoc => $xdoc, ##-- XML::LibXML::Document
xprs => $xprs, ##-- XML::LibXML parser
##-- output
encoding => $inputEncoding, ##-- default: UTF-8; applies to output only!
level => $level, ##-- output formatting level (default=0)
}
$doc = $fmt->parseDocument();
parses buffered XML::LibXML::Document
$xmlnod = $fmt->tokenNode($tok);
returns formatted token $tok as an XML node
$xmlnod = $fmt->sentenceNode($sent);
(undocumented)
$xmlnod = $fmt->documentNode($doc);
(undocumented)
$bodynode = $fmt->xmlBodyNode();
really just a wrapper for $fmt->xmlRootNode($fmt->{documentElement})
$sentnod = $fmt->xmlSentenceNode();
(undocumented)
$fmt = $fmt->putToken($tok);
(undocumented)
$fmt = $fmt->putSentence($sent);
(undocumented)
$fmt = $fmt->putDocument($doc);
(undocumented)
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2010-2019 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.1 or, at your option, any later version of Perl 5 you may have available.
dta-cab-convert.perl(1), DTA::CAB::Format::Builtin(3pm), DTA::CAB::Format(3pm), DTA::CAB(3pm), perl(1), ...