line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Simple::Parser::XML::Lite; |
2
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
4
|
use base qw(WebService::Simple::Parser); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
466
|
|
5
|
1
|
|
|
1
|
|
5
|
use XML::Parser::Lite::Tree; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
6
|
1
|
|
|
1
|
|
21
|
use XML::Parser::Lite::Tree::XPath; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
11
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors($_) for qw(lite); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new |
11
|
|
|
|
|
|
|
{ |
12
|
1
|
|
|
1
|
1
|
2
|
my $class = shift; |
13
|
1
|
|
|
|
|
3
|
my %args = @_; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
33
|
|
|
6
|
my $lite = delete $args{lite} || XML::Parser::Lite::Tree::instance(); |
16
|
1
|
|
|
|
|
148
|
my $self = $class->SUPER::new(%args); |
17
|
1
|
|
|
|
|
11
|
$self->{lite} = $lite; |
18
|
1
|
|
|
|
|
5
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub parse_response |
22
|
|
|
|
|
|
|
{ |
23
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
24
|
|
|
|
|
|
|
XML::Parser::Lite::Tree::XPath->new( |
25
|
0
|
|
|
|
|
|
$self->{lite}->parse( $_[0]->decoded_content ) ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |