NAME
Catmandu::Exporter::XML - serialize and export XML documents
VERSION
version 0.09
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 =item xmldecl =item encoding =item version =item standalone =item pretty
-
These options are passed to XML::Struct::Writer. The target (option
to
) is based on Catmandu::Exporter's optionfh
orfile
. - field
-
Take XML from a given field of each item, e.g. field
xml
as following:{ xml => [ root => { xmlns => 'http://example.org/' }, [ ... ] ] }
The default field name
_xml
is implied if optiondirectory
is set. - 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.