DTA::CAB::Format::XmlTokWrap - Datum parser|formatter: XML (DTA::TokWrap .t.xml)
use DTA::CAB::Format::XmlTokWrap; ##======================================================================== ## Methods $fmt = DTA::CAB::Format::XmlTokWrap->new(%args); $obj = $fmt->parseNode($nod); $doc = $fmt->parseDocument(); $fmt = $fmt->putDocument($doc); ##======================================================================== ## Utilities $nod = $fmt->xmlNode($thingy,$name); $val = PACKAGE::_pushValue(\%hash, $key, $val); ##-- $hash{$key}=$val;
DTA::CAB::Format::XMlTokWrap is a DTA::CAB::Format subclass for document I/O using a native XML dialect. It inherits from DTA::CAB::Format::XmlNative.
An example file in the format accepted/generated by this module is:
<?xml version="1.0" encoding="UTF-8"?> <sentences> <s lang="de"> <w msafe="1" hasmorph="1" errid="ec" exlex="wie" t="wie" lang="de"> <xlit isLatin1="1" isLatinExt="1" latin1Text="wie"/> <moot lemma="wie" word="wie" tag="PWAV"/> </w> <w t="oede" msafe="0"> <xlit isLatin1="1" isLatinExt="1" latin1Text="oede"/> <moot tag="ADJD" word="öde" lemma="öde"/> </w> <w t="!" exlex="!" errid="ec" msafe="1"> <moot lemma="!" word="!" tag="$."/> <xlit isLatin1="1" isLatinExt="1" latin1Text="!"/> </w> </s> </sentences>
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2011-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::XmlNative(3pm), DTA::CAB::Format::XmlCommon(3pm), DTA::CAB::Format::Builtin(3pm), DTA::CAB::Format(3pm), DTA::CAB(3pm), perl(1), ...
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'word="öde"'. Assuming UTF-8
To install DTA::CAB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DTA::CAB
CPAN shell
perl -MCPAN -e shell install DTA::CAB
For more information on module installation, please visit the detailed CPAN module installation guide.