Scroll to navigation

Dancer::Serializer::XML(3pm) User Contributed Perl Documentation Dancer::Serializer::XML(3pm)

NAME

Dancer::Serializer::XML - serializer for handling XML data

SYNOPSIS

DESCRIPTION

METHODS

serialize

Serialize a data structure to a XML structure.

deserialize

Deserialize a XML structure to a data structure

content_type

Return 'text/xml'

CONFIG FILE

You can set XML::Simple options for serialize and deserialize in the config file:
   engines:
      XMLSerializer:
        serialize:
           AttrIndent: 1
        deserialize:
           ForceArray: 1
2011-11-30 perl v5.14.2