| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # $Id$ | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package WebService::Simple::Parser::XML::Simple; | 
| 4 | 5 |  |  | 5 |  | 22 | use strict; | 
|  | 5 |  |  |  |  | 6 |  | 
|  | 5 |  |  |  |  | 211 |  | 
| 5 | 5 |  |  | 5 |  | 25 | use warnings; | 
|  | 5 |  |  |  |  | 7 |  | 
|  | 5 |  |  |  |  | 169 |  | 
| 6 | 5 |  |  | 5 |  | 31 | use base qw(WebService::Simple::Parser); | 
|  | 5 |  |  |  |  | 6 |  | 
|  | 5 |  |  |  |  | 2007 |  | 
| 7 | 5 |  |  | 5 |  | 1195 | 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__ |