1XML::Parser::Lite(3)  User Contributed Perl Documentation XML::Parser::Lite(3)
2
3
4

NAME

6       XML::Parser::Lite - Lightweight regexp-based XML parser
7

SYNOPSIS

9         use XML::Parser::Lite;
10
11         $p1 = new XML::Parser::Lite;
12         $p1->setHandlers(
13           Start => sub { shift; print "start: @_\n" },
14           Char => sub { shift; print "char: @_\n" },
15           End => sub { shift; print "end: @_\n" },
16         );
17         $p1->parse('<foo id="me">Hello World!</foo>');
18
19         $p2 = new XML::Parser::Lite
20           Handlers => {
21             Start => sub { shift; print "start: @_\n" },
22             Char => sub { shift; print "char: @_\n" },
23             End => sub { shift; print "end: @_\n" },
24           }
25         ;
26         $p2->parse('<foo id="me">Hello <bar>cruel</bar> World!</foo>');
27

DESCRIPTION

29       This Perl module gives you access to XML parser with interface similar
30       to XML::Parser interface. Though only basic calls are supported (init,
31       final, start, char, and end) you should be able to use it in the same
32       way you use XML::Parser. Due to using experimantal regexp features
33       it'll work only on Perl 5.6 and may behave differently on different
34       platforms.
35

SEE ALSO

37        XML::Parser
38
40       Copyright (C) 2000-2001 Paul Kulchenko. All rights reserved.
41
42       This library is free software; you can redistribute it and/or modify it
43       under the same terms as Perl itself.
44
45       This parser is based on "shallow parser"
46       http://www.cs.sfu.ca/~cameron/REX.html Copyright (c) 1998, Robert D.
47       Cameron.
48

AUTHOR

50       Paul Kulchenko (paulclinger@yahoo.com)
51
52
53
54perl v5.8.8                       2006-06-15              XML::Parser::Lite(3)
Impressum