line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package WebService::Simple::Parser::XML::Simple; |
4
|
5
|
|
|
5
|
|
20
|
use strict; |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
201
|
|
5
|
5
|
|
|
5
|
|
23
|
use warnings; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
159
|
|
6
|
5
|
|
|
5
|
|
24
|
use base qw(WebService::Simple::Parser); |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
1767
|
|
7
|
5
|
|
|
5
|
|
910
|
use XML::Simple; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
|
|
|
|
|
|
my $class = shift; |
11
|
|
|
|
|
|
|
my %args = @_; |
12
|
|
|
|
|
|
|
my $xs = delete $args{xs} || XML::Simple->new; |
13
|
|
|
|
|
|
|
my $self = $class->SUPER::new(%args); |
14
|
|
|
|
|
|
|
$self->{xs} = $xs; |
15
|
|
|
|
|
|
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub parse_response { |
19
|
|
|
|
|
|
|
my $self = shift; |
20
|
|
|
|
|
|
|
$self->{xs}->XMLin( $_[0]->decoded_content ); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |