Catmandu::Exporter::XML - serialize and export XML documents
This Catmandu::Exporter exports items serialized as XML. Serialization is implemented based on XML::Struct::Writer::Stream. By default, each item is written to STDOUT.
These options are passed to XML::Struct::Writer. The target (option to) is based on Catmandu::Exporter's option fh or file.
to
fh
file
Take XML from a given field of each item, e.g. field xml as following:
xml
{ xml => [ root => { xmlns => 'http://example.org/' }, [ ... ] ] }
Serialize to multiple files in a given directory.
Field to take filenames from if option directory is set. Defaults to _id. The file extension .xml is appended unless given.
directory
_id
.xml
To install Catmandu::XML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::XML
CPAN shell
perl -MCPAN -e shell install Catmandu::XML
For more information on module installation, please visit the detailed CPAN module installation guide.