Ignore:
Timestamp:
2013-07-08T22:17:10+12:00 (11 years ago)
Author:
davidb
Message:

Bumped up to using version 2.41 of XML::Parser so use of 'tie' no longer causes deprecated message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/shared/linux/XML-Parser/perl-5.14/XML/Parser.pm

    r27768 r27777  
    99package XML::Parser;
    1010
     11use strict;
     12
     13use vars qw($VERSION $LWP_load_failed);
     14
    1115use Carp;
    1216
    1317BEGIN {
    1418  require XML::Parser::Expat;
    15   $VERSION = '2.34';
     19  $VERSION = '2.41';
    1620  die "Parser.pm and Expat.pm versions don't match"
    1721    unless $VERSION eq $XML::Parser::Expat::VERSION;
    1822}
    19 
    20 use strict;
    21 
    22 use vars qw($VERSION $LWP_load_failed);
    2323
    2424$LWP_load_failed = 0;
     
    144144  my $final = delete $handlers{Final};
    145145
    146   my $expatnb = new XML::Parser::ExpatNB(@expat_options, @_);
     146  my $expatnb = XML::Parser::ExpatNB->new(@expat_options, @_);
    147147  $expatnb->setHandlers(%handlers);
    148148
     
    168168  }
    169169 
    170   my $expat = new XML::Parser::Expat(@expat_options, @_);
     170  my $expat = XML::Parser::Expat->new(@expat_options, @_);
    171171  my %handlers = %{$self->{Handlers}};
    172172  my $init = delete $handlers{Init};
     
    298298
    299299  require IO::File;
    300   my $fh = new IO::File($path);
     300  my $fh = IO::File->new($path);
    301301  unless (defined $fh) {
    302302    $xp->{ErrorMessage}
     
    337337
    338338  use XML::Parser;
    339  
    340   $p1 = new XML::Parser(Style => 'Debug');
     339
     340  $p1 = XML::Parser->new(Style => 'Debug');
    341341  $p1->parsefile('REC-xml-19980210.xml');
    342342  $p1->parse('<foo id="me">Hello World</foo>');
    343343
    344344  # Alternative
    345   $p2 = new XML::Parser(Handlers => {Start => \&handle_start,
     345  $p2 = XML::Parser->new(Handlers => {Start => \&handle_start,
    346346                                     End   => \&handle_end,
    347347                                     Char  => \&handle_char});
     
    349349
    350350  # Another alternative
    351   $p3 = new XML::Parser(ErrorContext => 2);
     351  $p3 = XML::Parser->new(ErrorContext => 2);
    352352
    353353  $p3->setHandlers(Char    => \&text,
     
    376376case they override options given at XML::Parser creation time.
    377377
    378 The behavior of the parser is controlled either by C<L</Style>> and/or
    379 C<L</Handlers>> options, or by L</setHandlers> method. These all provide
     378The behavior of the parser is controlled either by C<L</STYLES>> and/or
     379C<L</HANDLERS>> options, or by L</setHandlers> method. These all provide
    380380mechanisms for XML::Parser to set the handlers needed by XML::Parser::Expat.
    381381If neither C<Style> nor C<Handlers> are specified, then parsing just
Note: See TracChangeset for help on using the changeset viewer.