| XML-Toolkit documentation | Contained in the XML-Toolkit distribution. |
XML::Toolkit::Generator - A set of tools for converting Moose Objects into XML
use XML::Toolkit::Generator;
my $generator = XML::Toolkit::Generator->new(engine => $engine);
$generator->render_object( $object );
say for $generator->output;
An ArrayRef that contains all of the output.
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.
None reported.
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.
Chris Prather <chris@prather.org>
Copyright (c) 2008, Chris Prather <chris@prather.org>. Some rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
| 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__