NAME
DTA::CAB::Format::XmlVz - Datum parser|formatter: XML (Vz)
SYNOPSIS
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);
DESCRIPTION
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.
Constructors etc.
- new
-
$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) }
Methods: Input: Generic API
- parseDocument
-
$doc = $fmt->parseDocument();
parses buffered XML::LibXML::Document
Methods: Output: Local: Nodes
- tokenNode
-
$xmlnod = $fmt->tokenNode($tok);
returns formatted token $tok as an XML node
- sentenceNode
-
$xmlnod = $fmt->sentenceNode($sent);
(undocumented)
- documentNode
-
$xmlnod = $fmt->documentNode($doc);
(undocumented)
Methods: Output: Local: Utils
- xmlBodyNode
-
$bodynode = $fmt->xmlBodyNode();
really just a wrapper for $fmt->xmlRootNode($fmt->{documentElement})
- xmlSentenceNode
-
$sentnod = $fmt->xmlSentenceNode();
(undocumented)
Methods: Output: API
- putToken
-
$fmt = $fmt->putToken($tok);
(undocumented)
- putSentence
-
$fmt = $fmt->putSentence($sent);
(undocumented)
- putDocument
-
$fmt = $fmt->putDocument($doc);
(undocumented)
AUTHOR
Bryan Jurish <moocow@cpan.org>
COPYRIGHT AND LICENSE
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.
SEE ALSO
dta-cab-convert.perl(1), DTA::CAB::Format::Builtin(3pm), DTA::CAB::Format(3pm), DTA::CAB(3pm), perl(1), ...