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

NAME

XML::Toolkit::Builder - A set of tools for Building XML Classes via XML::SAX Streams

SYNOPSIS

    use XML::Toolkit::Builder;
    my $builder = XML::Toolkit::Builder->new( namespace => 'MyApp' );
    $self->builder->parse_file( $file );
    say $builder->render;

ATTRIBUTES

namespace - The namespace for your output

This will define the root level namespace for the classes generated by the Builder. This defaults to "MyApp".

filter - An XML::SAX Filter

The render method is required. This is the class that renders the parsed events into a set of Moose classes. XML::Toolkit::Builder::Filter documented elsewhere in this distribution is the default implementation.

template - Optionally a template to pass into the Filter

This is to allow customization of the output template for the generated Moose classes.

output - Output Buffer

An ArrayRef that contains all of the output.

parser - A Parser Object

The methods parse_uri, parse_file and parse_string are required. This defaults to a XML::SAX::ParserFactory parser.

INCOMPATIBILITIES

None reported.

BUGS AND LIMITATIONS

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

Chris Prather <chris@prather.org>

LICENCE AND COPYRIGHT

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.