POE::Component::MXML - Perl extension for parsing Minimal XML specs
use POE::Component::MXML; POE::Component::MXML->spawn( Alias => 'nested_tag_mxml', InputHandle => '<para>open<emph>nest</emph>close</para>', Tag => 'Tag', # Event for <tag>content</tag> ); POE::Session->create( inline_states => { _start => sub { $_[KERNEL]->post('nested_tag_mxml' => 'get_tag'); }, Tag => sub { my ($tag_type,$tag_name,$tag_contents) = @{$_[ARG1]}[0..2]; } } );
MXML is a Minimalist XML, without frills such as CDATA, attributes or entities. Refer to http://www.docuverse.com/smldev/minxmlspec.html for a spec.
Jeff Goff, <drforr@pobox.com>
perl(1).
To install POE::Component::MXML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::MXML
CPAN shell
perl -MCPAN -e shell install POE::Component::MXML
For more information on module installation, please visit the detailed CPAN module installation guide.