Treex::PML::Backend::PMLTransform - I/O backend implementing on-the-fly XML to PML conversion
use Treex::PML; Treex::PML::AddBackends(qw(PMLTransform)) my $document = Treex::PML::Factory->createDocumentFromFile('input.xml'); ... $document->save();
This module implements a Treex::PML input/output backend which accepts any XML file and attempts to convert it to PML using user-defined transformations (XSLT 1.0, Perl, or external command). See "CONFIGURATION" in Treex::PML::Instance for details.
WARNING: since this backend accepts every XML file, it should be added as the last backend (otherwise other backends working with XML will not be tried).
Copyright (C) 2006-2010 by Petr Pajas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
To install Treex::PML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::PML
CPAN shell
perl -MCPAN -e shell install Treex::PML
For more information on module installation, please visit the detailed CPAN module installation guide.