POE::Filter::SimpleXML - Simple XML parsing for the POE framework
version 1.140700
use POE::Filter::SimpleXML; my $filter = POE::Filter::SimpleXML->new; my $wheel = POE::Wheel:ReadWrite->new( Filter => $filter, InputEvent => 'input_event', );
POE::Filter::SimpleXML provides POE with a XML parsing strategy for POE::Wheels that will be dealing with Complete XML documents.
The parser is XML::LibXML
is: ro, isa: ArrayRef, traits: Array
buffer holds the raw data to be parsed, there should be one XML document per entry. Access to this attribute is provided by the following methods:
handles => { has_buffer => 'count', all_buffer => 'elements', push_buffer => 'push', shift_buffer => 'shift', unshift_buffer => 'unshift', join_buffer => 'join', }
is: ro, isa: CodeRef
callback holds the CodeRef to be call in the event that there is an exception generated while parsing content. By default it holds a CodeRef that simply calls Carp::confess.
is: ro, isa: XML::LibXML
parser holds an instance of the XML::LibXML parser.
(ArrayRef $raw?)
This method is part of the POE::Filter API. See "get_one_start" in POE::Filter for an explanation of its usage.
returns (ArrayRef)
This method is part of the POE::Filter API. See "get_one" in POE::Filter for an explanation of its usage.
(ArrayRef $nodes) returns (ArrayRef)
This method is part of the POE::Filter API. See "put" in POE::Filter for an explanation of its usage.
Mathieu Arnold <mat@cpan.org>
This software is copyright (c) 2021 by Mathieu Arnold <mat@cpan.org>
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content
To install POE::Filter::SimpleXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Filter::SimpleXML
CPAN shell
perl -MCPAN -e shell install POE::Filter::SimpleXML
For more information on module installation, please visit the detailed CPAN module installation guide.