XML::Toolkit::Generator - A set of tools for converting Moose Objects into XML


XML-Toolkit documentation Contained in the XML-Toolkit distribution.

Index


Code Index:

NAME

Top

XML::Toolkit::Generator - A set of tools for converting Moose Objects into XML

SYNOPSIS

Top

    use XML::Toolkit::Generator;
    my $generator =     XML::Toolkit::Generator->new(engine => $engine);
    $generator->render_object( $object );
    say for $generator->output;

ATTRIBUTES

Top

output - Output Buffer

An ArrayRef that contains all of the output.

engine - An XML::Toolkit::Generator Engine

This must do the XML::Toolkit::Generator::Interface. This is the class that introspects Moose Objects and converts them into a SAX Stream. It defaults to XML::Toolkit::Generator::Default.

INCOMPATIBILITIES

Top

None reported.

BUGS AND LIMITATIONS

Top

No bugs have been reported.

Please report any bugs or feature requests to bug-xml-toolkit@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

Top

Chris Prather <chris@prather.org>

LICENCE AND COPYRIGHT

Top


XML-Toolkit documentation Contained in the XML-Toolkit distribution.

package XML::Toolkit::Generator;
use Moose;
use XML::SAX::Writer;
use namespace::autoclean;

has output => (
    isa        => 'ArrayRef',
    is         => 'ro',
    required   => 1,
    auto_deref => 1,
);

has engine => (
    does     => 'XML::Toolkit::Generator::Interface',
    is       => 'ro',
    required => 1,
    handles  => { render_object => 'parse' },
);

__PACKAGE__->meta->make_immutable;
1;
__END__