Help for this page

Select Code to Download


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