DESCRIPTION

This module implements an XML parser with a interface similar to XML::Parser. Though not all callbacks are supported, you should be able to use it in the same way you use XML::Parser. Due to using experimental regexp features it'll work only on Perl 5.6 and above and may behave differently on different platforms.

Note that you cannot use regular expressions or split in callbacks. This is due to a limitation of perl's regular expression implementation (which is not re-entrant).

SUBROUTINES/METHODS

new

Constructor.

The new() method returns the object called on when called as object method. This behaviour was inherited from SOAP::Lite, which XML::Parser::Lite was split out from. This means that the following effectively is a no-op if $obj is a object:

$obj = $obj->new();

New accepts a single named parameter, Handlers with a hash ref as value:

Handler methods

Init

Start

Char

Called for each character sequence. May be called multiple times for the characters contained in an XML node (even for every single character). Your implementation has to make sure that it captures all characters.

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.