The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Exporter::XML - serialize and export XML documents

VERSION

version 0.13

DESCRIPTION

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.

CONFIGURATION

attributes
xmldecl
encoding
version
standalone
pretty

These options are passed to XML::Struct::Writer. The target (option to) is based on Catmandu::Exporter's option fh or file.

field

Take XML from a given field of each item, e.g. field xml as following:

    { xml => [ root => { xmlns => 'http://example.org/' }, [ ... ] ] }
directory

Serialize to multiple files in a given directory.

filename

Field to take filenames from if option directory is set. Defaults to _id. The file extension .xml is appended unless given.

AUTHOR

Jakob Voß

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Jakob Voß.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.