XML::Filter::Moose - A Moose-ified base class for XML::SAX


XML-Toolkit documentation  | view source Contained in the XML-Toolkit distribution.

Index


NAME

Top

XML::Filter::Moose - A Moose-ified base class for XML::SAX

VERSION

Top

This documentation refers to version 0.01.

SYNOPSIS

Top

    package MyFilter;
    use Moose
    extends qw(XML::SAX::Base);

    augment start_element => start {
        my ($self, $el) = @_;
        $el->{Data} = [do something];
    };

DESCRIPTION

Top

The XML::Filter::Moose class implements ...

ATTRIBUTES

Top

stack - ArrayRef

text - Str

METHODS

Top

root()

Returns the root element, or the first element in the stack

current_element()

Insert description of subroutine here...

is_root()

Return true if we are currently working on the root element.

parent_element()

Returns the parent of the current element.

start_document($document)

Fires at the start of the document.

start_element($element)

Fires at the start of an element.

characters($element)

Fires at the start of a text node.

end_element($element)

Fires at the end of an element.

end_document($document)

Fires at the end of a document.

DEPENDENCIES

Top

Moose

XML::SAX::Base

BUGS AND LIMITATIONS

Top

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)

Based upon XML::SAX::Base

Kip Hampton (khampton@totalcinema.com)

Robin Berjon (robin@knowscape.com)

Matt Sergeant (matt@sergeant.org)

LICENCE

Top

Copyright 2009 by Chris Prather.

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


XML-Toolkit documentation  | view source Contained in the XML-Toolkit distribution.