The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POE::Component::MXML - Perl extension for parsing Minimal XML specs

SYNOPSIS

  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];
      }
    }
  );

DESCRIPTION

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.

AUTHOR

Jeff Goff, <drforr@pobox.com>

SEE ALSO

perl(1).