Chris Prather > XML-Toolkit-0.06 > XML::Filter::Moose::Class

Download:
XML-Toolkit-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

XML::Filter::Moose::Class - An XML::SAX Filter that generates Moose Classes from SAX events.

SYNOPSIS ^

    use XML::Filter::Moose::Class;

    my $filter = XML::Filter::Moose::Class->new( 
        template => $template, 
        namespace => $namespace 
    );

    my $parser = XML::SAX::ParserFactory->parser( Handler => $filter );

    $parser->parse_file($file);
    print $filter->render;

DESCRIPTION ^

The XML::Filter::Moose::Class class implements an XML::SAX Filter that generates Moose Classes from SAX events.

METHODS ^

get_class_name()

Insert description of method here...

create_class($name, %params)

Insert description of method here...

add_attribute($class, $type, $attribute)

Insert description of method here...

add_text_attribute($class, $element)

Insert description of method here...

DEPENDENCIES ^

Modules used, version dependencies, core yes/no

Moose

MooseX::AttributeHelpers

Moose::Util::TypeConstraints

Template::Toolkit

XML::Filter::Moose

BUGS AND LIMITATIONS ^

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 ^

Copyright 2009 by Chris Prather.

This software is free. It is licensed under the same terms as Perl itself.