- or download this
my $parser = XML::Parser->new(Handlers => {Start => \&startElement});
- or download this
my $parser = XML::Parser->new(
Handlers => {
Start => sub {$self->startElement(@_);}
}
);
- or download this
sub startElement {
my ($self, $parseinst, $element, %attrs ) = @_;
- or download this
use strict;
use warnings;
...
<root>
<child Property='Hello World'/>
</root>