Chris Prather > XML-Toolkit > XML::Toolkit::Loader

Download:
XML-Toolkit-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

XML::Toolkit::Loader - A set of tools for Loading XML into Moose Objects

SYNOPSIS ^

    use XML::Toolkit::Loader;
    my $loader = XML::Toolkit::Loader->new( namespace => 'MyApp' );
    $loader->parse_file( $$file );
    print join '', @{ $loader->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 Objects. XML::Toolkit::Loader::Parser documented elsewhere in this distribution is the default implementation.

generator - An XML::Toolkit::Generator

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

parser - A Parser Object

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

METHODS ^

render()

Render the current root_object via the XML::Toolkit::Generator's render_object method

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.